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

Allow CLType::Any as session args. #132

Open
zie1ony opened this issue Dec 15, 2023 · 0 comments
Open

Allow CLType::Any as session args. #132

zie1ony opened this issue Dec 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@zie1ony
Copy link
Contributor

zie1ony commented Dec 15, 2023

Often developers use their own structs with their own FromBytes implementation.
Then in smart contract code it is possible to write:

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:

--session-arg "arg:byte_array_14='09000000536574506172616d7301'"

I'd like to able to write instead:

--session-arg "arg:any='09000000536574506172616d7301'"
@gRoussac gRoussac added the enhancement New feature or request label Jul 17, 2024
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

No branches or pull requests

2 participants