Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

add getter function for contract_id #199

Merged
merged 4 commits into from
Oct 14, 2022

Conversation

Salka1988
Copy link
Member

@Salka1988 Salka1988 commented Oct 13, 2022

I added :

    pub const fn contract_id(&self) -> Option<&ContractId> {
        match self {
            Self::Panic { contract_id, .. } => contract_id.as_ref(),
            _ => None,
        }
    }

in order to use it in tx/receipt.rs to extend schema.sdl with the new `contract_id' field.

src/receipt/receipt_std.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/receipt.rs Outdated Show resolved Hide resolved
Salka1988 and others added 2 commits October 13, 2022 22:54
Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
@Salka1988 Salka1988 self-assigned this Oct 13, 2022
@Salka1988 Salka1988 requested a review from Voxelot October 13, 2022 21:22
@Salka1988 Salka1988 merged commit a7b5496 into master Oct 14, 2022
@Salka1988 Salka1988 deleted the Salka1988/add_contract_id_getter branch October 14, 2022 08:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants