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
CLType::Any
Often developers use their own structs with their own FromBytes implementation. Then in smart contract code it is possible to write:
FromBytes
let arg: MyStruct = runtime::get_named_arg("arg");
Sadly it's not easy to construct such an argument with casper-client. There is a hack that can be used. Simply use an fix-sized array:
casper-client
--session-arg "arg:byte_array_14='09000000536574506172616d7301'"
I'd like to able to write instead:
--session-arg "arg:any='09000000536574506172616d7301'"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Often developers use their own structs with their own
FromBytes
implementation.Then in smart contract code it is possible to write:
Sadly it's not easy to construct such an argument with
casper-client
. There is a hack that can be used. Simply use an fix-sized array:--session-arg "arg:byte_array_14='09000000536574506172616d7301'"
I'd like to able to write instead:
--session-arg "arg:any='09000000536574506172616d7301'"
The text was updated successfully, but these errors were encountered: