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 0f35494 commit a9b13a3Copy full SHA for a9b13a3
zero_bin/rpc/src/native/txn.rs
@@ -517,10 +517,14 @@ pub fn generate_jumpdest_table(
517
callee_raw_opt.is_some(),
518
"Stack must contain at least two values for a CALL instruction."
519
);
520
+
521
+ // Clear the upper half of the operand.
522
let callee_raw = *callee_raw_opt.unwrap();
523
+ let (callee_raw, _overflow) = callee_raw.overflowing_shl(128);
524
+ let (callee_raw, _overflow) = callee_raw.overflowing_shr(128);
525
- let lower_bytes = U160::from(callee_raw);
- Address::from(lower_bytes)
526
+ let lower_20_bytes = U160::from(callee_raw);
527
+ Address::from(lower_20_bytes)
528
};
529
530
if precompiles().contains(&callee_address) {
0 commit comments