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

Add support for the EvmAddress type #661

Closed
nfurfaro opened this issue Oct 31, 2022 · 0 comments · Fixed by #668
Closed

Add support for the EvmAddress type #661

nfurfaro opened this issue Oct 31, 2022 · 0 comments · Fixed by #668
Assignees
Labels
enhancement New feature or request

Comments

@nfurfaro
Copy link

Sway has an EvmAddress type which is very similar to the Address type.
It would be nice to be able to use the type as contract call inputs and outputs.

*Note: An EVM address is only 20 bytes, so the first 12 bytes of the inner value are set to zero

/// The Address type, a struct wrappper around the inner `value`.
pub struct EvmAddress {
    value: b256,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants