Skip to content

Commit 1f0e967

Browse files
ryanmorphl2FletcherMan
authored andcommitted
fix: use precompile contracts correctly (#181)
1 parent 3737f65 commit 1f0e967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/vm/evm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ type (
4646
func (evm *EVM) precompile(addr common.Address) (PrecompiledContract, bool) {
4747
var precompiles map[common.Address]PrecompiledContract
4848
switch {
49+
case evm.chainRules.IsMorph203:
50+
precompiles = PrecompiledContractsMorph203
4951
case evm.chainRules.IsBernoulli:
5052
precompiles = PrecompiledContractsBernoulli
5153
case evm.chainRules.IsArchimedes:

0 commit comments

Comments
 (0)