Commit 6d05dd21 authored by ben-chain's avatar ben-chain

actually add evm precompiles

parent 4f1ebd2d
......@@ -871,10 +871,16 @@ contract OVM_ExecutionManager is iOVM_ExecutionManager, Lib_AddressResolver {
bytes memory _returndata
)
{
// EVM precompiles have the same address on L1 and L2 --> no trie lookup neededgit s.
address codeContractAddress =
uint(_contract) < 100
? _contract
: _getAccountEthAddress(_contract)
return _handleExternalInteraction(
_nextMessageContext,
_gasLimit,
_getAccountEthAddress(_contract),
codeContractAddress,
_calldata,
_isStaticEntrypoint
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment