File tree 2 files changed +6
-2
lines changed
libraries/chain/webassembly 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ class binaryen_instantiated_module : public wasm_instantiated_module_interface {
22
22
}
23
23
24
24
void apply (apply_context& context) override {
25
- LiteralList args = {Literal (uint64_t (context.act .account )),
25
+ LiteralList args = {Literal (uint64_t (context.receiver )),
26
+ Literal (uint64_t (context.act .account )),
26
27
Literal (uint64_t (context.act .name ))};
27
28
call (" apply" , args, context);
28
29
}
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ class wavm_instantiated_module : public wasm_instantiated_module_interface {
30
30
{}
31
31
32
32
void apply (apply_context& context) override {
33
- vector<Value> args = {Value (uint64_t (context.act .account )),
33
+ vector<Value> args = {Value (uint64_t (context.receiver )),
34
+ Value (uint64_t (context.act .account )),
34
35
Value (uint64_t (context.act .name ))};
35
36
36
37
call (" apply" , args, context);
@@ -77,12 +78,14 @@ class wavm_instantiated_module : public wasm_instantiated_module_interface {
77
78
} FC_CAPTURE_AND_RETHROW ()
78
79
}
79
80
81
+
80
82
std::vector<uint8_t > _initial_memory;
81
83
// naked pointers because ModuleInstance is opaque
82
84
ModuleInstance* _instance;
83
85
Module* _module;
84
86
};
85
87
88
+
86
89
wavm_runtime::runtime_guard::runtime_guard () {
87
90
// TODO clean this up
88
91
// check_wasm_opcode_dispositions();
You can’t perform that action at this time.
0 commit comments