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
other
There should be a way to serialize contract calls to bytes using references. For code like
fn my_call(input: &Address, output: &[Address]) -> Vec<u8> { MyContract::myCall::new((*target, output.to_vec())) .abi_encode() // Immediately throws away to_vec() allocation }
we should also allow some variation of
fn my_call(input: &Address, output: &[Address]) -> Vec<u8> { MyContract::myCall::new((target, output)) .abi_encode() }
No response
The text was updated successfully, but these errors were encountered:
could you please also share the generated code of that function?
Sorry, something went wrong.
No branches or pull requests
Component
other
Describe the feature you would like
There should be a way to serialize contract calls to bytes using references. For code like
we should also allow some variation of
Additional context
No response
The text was updated successfully, but these errors were encountered: