Skip to content

Commit

Permalink
Force an argument write order
Browse files Browse the repository at this point in the history
  • Loading branch information
tbfleming committed Jan 18, 2022
1 parent 2a4481f commit f8f20fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/chain/webassembly/authorization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace eosio { namespace chain { namespace webassembly {
vm::argument_proxy<uint8_t*> vm_type,
vm::argument_proxy<uint8_t*> vm_version
) const {
return context.get_code_hash( account, code_sequence, code_hash, vm_type, vm_version );
auto result = context.get_code_hash( account, code_sequence, code_hash, vm_type, vm_version );
(void)vm::argument_proxy<uint64_t*>(std::move(code_sequence));
(void)vm::argument_proxy<fc::sha256*>(std::move(code_hash));
(void)vm::argument_proxy<uint8_t*>(std::move(vm_type));
(void)vm::argument_proxy<uint8_t*>(std::move(vm_version));
return result;
}
}}} // ns eosio::chain::webassembly

0 comments on commit f8f20fb

Please sign in to comment.