Merge pull request #63 from paritytech/fix-grow-mem

Fix grow_memory substitution
This commit is contained in:
Nikolay Volf 2018-02-21 22:59:56 +03:00 committed by GitHub
commit 32d54c8540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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?
Call(gas_func),
GrowMemory(0),
GetLocal(0),
End,
]))
.build()
@ -260,7 +259,6 @@ mod tests {
I32Mul,
Call(0),
GrowMemory(0),
GetLocal(0),
End,
][..],
injected_module