Support native calls for delegatecall and callcode (#1534)

pull/1537/head
Nikhil Parasaram 3 years ago committed by GitHub
parent 2212e565a4
commit 82d2fa8196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      mythril/laser/ethereum/instructions.py

@ -2074,6 +2074,12 @@ class Instruction:
)
return [global_state]
native_result = native_call(
global_state, callee_address, call_data, memory_out_offset, memory_out_size
)
if native_result:
return native_result
transaction = MessageCallTransaction(
world_state=global_state.world_state,
gas_price=environment.gasprice,
@ -2211,6 +2217,12 @@ class Instruction:
)
return [global_state]
native_result = native_call(
global_state, callee_address, call_data, memory_out_offset, memory_out_size
)
if native_result:
return native_result
transaction = MessageCallTransaction(
world_state=global_state.world_state,
gas_price=environment.gasprice,

Loading…
Cancel
Save