mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-05-30 08:01:21 +00:00
fix grow memory injector
This commit is contained in:
parent
1fbcca8435
commit
48232fb9bb
@ -51,7 +51,6 @@ fn add_grow_counter(module: elements::Module, rules: &rules::Set, gas_func: u32)
|
|||||||
// todo: there should be strong guarantee that it does not return anything on stack?
|
// todo: there should be strong guarantee that it does not return anything on stack?
|
||||||
Call(gas_func),
|
Call(gas_func),
|
||||||
GrowMemory(0),
|
GrowMemory(0),
|
||||||
GetLocal(0),
|
|
||||||
End,
|
End,
|
||||||
]))
|
]))
|
||||||
.build()
|
.build()
|
||||||
@ -260,7 +259,6 @@ mod tests {
|
|||||||
I32Mul,
|
I32Mul,
|
||||||
Call(0),
|
Call(0),
|
||||||
GrowMemory(0),
|
GrowMemory(0),
|
||||||
GetLocal(0),
|
|
||||||
End,
|
End,
|
||||||
][..],
|
][..],
|
||||||
injected_module
|
injected_module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user