gasleft extern implemented for WASM runtime (kip-6) (#9357)
* Wasm gasleft extern added
* wasm_gasleft_activation_transition -> kip4_transition
* use kip-6 switch
* gasleft_panic -> gasleft_fail rename
* call_msg_gasleft test added and gas_left agustments because this https://github.com/paritytech/wasm-tests/pull/52
* change .. to _
* fix comment for the have_gasleft param
* update tests (0edbf860ff)
This commit is contained in:
@@ -151,6 +151,8 @@ pub struct WasmCosts {
|
||||
pub opcodes_div: u32,
|
||||
/// Whether create2 extern function is activated.
|
||||
pub have_create2: bool,
|
||||
/// Whether gasleft extern function is activated.
|
||||
pub have_gasleft: bool,
|
||||
}
|
||||
|
||||
impl Default for WasmCosts {
|
||||
@@ -169,6 +171,7 @@ impl Default for WasmCosts {
|
||||
opcodes_mul: 3,
|
||||
opcodes_div: 8,
|
||||
have_create2: false,
|
||||
have_gasleft: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user