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

Create EVMBytesMetadata view #165

Open
sisyphusSmiling opened this issue Feb 7, 2025 · 0 comments
Open

Create EVMBytesMetadata view #165

sisyphusSmiling opened this issue Feb 7, 2025 · 0 comments
Assignees
Labels

Comments

@sisyphusSmiling
Copy link
Contributor

Description

Define the EVMBytesMetadata view

/// View resolved at resource level denoting any metadata to be passed to the associated EVM contract at the time of
/// bridging. This optional view would allow EVM side metadata to be updated based on current Cadence state. If the
/// view is not supported, no bytes will be passed into EVM when bridging.
access(all) struct EVMBytesMetadata {
    /// Returns the bytes to be passed to the EVM contract on `fulfillToEVM` call, allowing the EVM contract to update
    /// the metadata associated with the NFT. The corresponding Solidity `bytes` type allows the implementer greater
    /// flexibility by enabling them to pass arbitrary data between VMs.
    access(all) fun bytes(): EVM.EVMBytes?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Status: 👀 In Review
Development

No branches or pull requests

1 participant