Skip to content

Commit

Permalink
NDEV-3265. Fix /api/emulate failed with precompiled contracts (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancientmage authored Sep 3, 2024
1 parent cefae97 commit ae50b87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions evm_loader/program/src/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ impl<B: Database, T: EventListener> Machine<B, T> {
let value = Self::precompile(&self.context.contract, &self.call_data).unwrap();
backend.commit_snapshot();

end_vm!(self, backend, ExitStatus::Return(value.clone()));
ExitStatus::Return(value)
} else {
loop {
Expand Down

0 comments on commit ae50b87

Please sign in to comment.