Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixture #286

Merged
merged 7 commits into from
Aug 21, 2024
Merged

Fixture #286

merged 7 commits into from
Aug 21, 2024

Conversation

deuszex
Copy link
Contributor

@deuszex deuszex commented Aug 16, 2024

condor compatible. added native events

runtime::emit_message(EVENTS, &payload).unwrap_or_revert()
}

impl Event {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to me this match does the same thing for all cases
maybe then ?

impl Event {
    pub fn to_json(&self) -> String {
        serde_json::to_string(self)
            .map_err(|_| NFTCoreError::FailedToConvertEventToJson)
            .unwrap_or_revert()
    }
}

contract/src/main.rs Outdated Show resolved Hide resolved
@gRoussac gRoussac merged commit c3a0204 into feat-2.0 Aug 21, 2024
4 checks passed
@gRoussac gRoussac deleted the fixture branch October 21, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants