Skip to content

Commit

Permalink
fix: returndata merged with child on call frame error (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 3, 2024
1 parent 43b0be8 commit a6fbebb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion crates/evm/src/call_helpers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ impl CallHelpersImpl of CallHelpers {
let result = EVMTrait::process_message(message, ref self.env);
self.merge_child(@result);

self.return_data = result.return_data;
if result.success {
self.stack.push(1)?;
} else {
Expand Down
1 change: 1 addition & 0 deletions crates/evm/src/model/vm.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl VMImpl of VMTrait {
self.accessed_addresses.extend(*child.accessed_addresses);
self.accessed_storage_keys.extend(*child.accessed_storage_keys);
self.gas_refund += *child.gas_refund;
self.return_data = *child.return_data;
}
//TODO(gas) handle error case

Expand Down

0 comments on commit a6fbebb

Please sign in to comment.