mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-06-02 17:41:20 +00:00
Merge pull request #63 from paritytech/fix-grow-mem
Fix grow_memory substitution
This commit is contained in:
commit
32d54c8540
@ -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