We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1c2d8 commit fb1907fCopy full SHA for fb1907f
src/evm/onchain/mod.rs
@@ -268,13 +268,14 @@ where
268
let address = match *interp.instruction_pointer {
269
0xf1 | 0xf2 => {
270
// CALL | CALLCODE
271
+ let callee = interp.stack.peek(1).unwrap();
272
#[cfg(feature = "real_balance")]
273
{
274
// Get balance of the callee
- host.next_slot = self.endpoint.get_balance(caller);
275
+ host.next_slot = self.endpoint.get_balance(convert_u256_to_h160(callee));
276
}
277
- interp.stack.peek(1).unwrap()
278
+ callee
279
280
0xf4 | 0xfa => interp.stack.peek(1).unwrap(),
281
0x3b | 0x3c | 0x3f => interp.stack.peek(0).unwrap(),
0 commit comments