mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-11 21:11:05 +00:00
Make the rules passed to gas metering injection generic
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ fn main() {
|
||||
let module = parity_wasm::deserialize_file(&args[1]).expect("Module deserialization to succeed");
|
||||
|
||||
let result = utils::inject_gas_counter(
|
||||
module, &Default::default(), "env"
|
||||
module, &utils::rules::Set::default(), "env"
|
||||
).expect("Failed to inject gas. Some forbidden opcodes?");
|
||||
|
||||
parity_wasm::serialize_to_file(&args[2], result).expect("Module serialization to succeed")
|
||||
|
||||
Reference in New Issue
Block a user