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

Standardize the params of storage instructions #111

Open
clearloop opened this issue Aug 23, 2023 · 0 comments
Open

Standardize the params of storage instructions #111

clearloop opened this issue Aug 23, 2023 · 0 comments

Comments

@clearloop
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant