zink
zink copied to clipboard
Load fixed arrays from calldata
trafficstars
Describe the feature
#[zink::external]
fn foo(array: [U256, 2]) {
// ...
}
Solution
- register the array types to ABI
- pass ABI to the compiler
- in the code generator, detect the length of the arrays from function signature ( which is passed from 2. )
- process the fixed length to bytecode for operating this type