We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
call
I have an ink! method with the following signature:
type Foo { selector: [u8; 4], } fn bar(&mut self, f: Foo)
When using cargo-contract to supply the argument I have to use the decimal representation for the bytes:
cargo-contract
cargo contract call \ --contract ... \ --message bar \ --args "Foo { selector: [123, 456, 789, 987] }" \ --suri ... \
I'd like the option to use hex literals as well:
cargo contract call \ --contract ... \ --message bar \ --args "Foo { selector: [0xAB, 0xCD, 0xEF, 0xGH] }" \ --suri ... \
This is how ink! mainly deals with selectors, so it would make it more consistent for users.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I have an ink! method with the following signature:
When using
cargo-contract
to supply the argument I have to use the decimalrepresentation for the bytes:
I'd like the option to use hex literals as well:
This is how ink! mainly deals with selectors, so it would make it more consistent for
users.
The text was updated successfully, but these errors were encountered: