zink
zink copied to clipboard
Standardize the params of storage instructions
Describe the feature
There are two instructions for storage operations in EVM
| opcode | instruction | input | output |
|---|---|---|---|
0x54 |
sload |
key |
value |
0x55 |
sstore |
key, value |
both key and value should be 32-byte, but in the current implementation, we are using i64 for the them, which will be compiled to i64 directly in WASM
not using [u8; 32] or [u64; 4] even U256 in the interfaces for now in library zink is because it is hard to be passed to WASM directly at the moment xdd WASM only has number types i32, i64, f32, f64, an array type could increase the complexity of the implementation #110
Solution
No response