mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-21 20:51:01 +00:00
switch to the new storage API (#396)
This PR switches to the new `get_storage_or_zero` and `set_storage_or_clear` syscalls which are more tailored towards Solidity. Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ pub static GAS_PRICE: &str = "gas_price";
|
||||
|
||||
pub static GET_IMMUTABLE_DATA: &str = "get_immutable_data";
|
||||
|
||||
pub static GET_STORAGE: &str = "get_storage";
|
||||
pub static GET_STORAGE: &str = "get_storage_or_zero";
|
||||
|
||||
pub static HASH_KECCAK_256: &str = "hash_keccak_256";
|
||||
|
||||
@@ -62,7 +62,7 @@ pub static RETURNDATASIZE: &str = "return_data_size";
|
||||
|
||||
pub static SET_IMMUTABLE_DATA: &str = "set_immutable_data";
|
||||
|
||||
pub static SET_STORAGE: &str = "set_storage";
|
||||
pub static SET_STORAGE: &str = "set_storage_or_clear";
|
||||
|
||||
pub static VALUE_TRANSFERRED: &str = "value_transferred";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user