Open
Description
Describe the feature
case 1 - dynamic array as the only param
pub fn foo(dyn_array: String) {
// ...
}
case 2 - dynamic array after types
pub fn foo(num: i32, dyn_array: String) {
// ...
}
case 3 - dynamic array in the middle of params
pub fn foo(num: i32, dyn_array: String, boolean: bool) {
// ...
}
Solution
- align calldata to the solidity ABI spec
- detect dynamic arrays in parameters from function signature
- when
local.get
happens on dynamic arrays, use chained instructions to extract them
Metadata
Metadata
Assignees
Type
Projects
Status
No status