Skip to content

Commit d10ccaf

Browse files
marioevzjorgemmsilva
authored andcommitted
core/vm: fix Prague contracts (ethereum#29612)
core/vm: fix prague contracts
1 parent 3471245 commit d10ccaf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/vm/contracts.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ var PrecompiledContractsCancun = map[common.Address]PrecompiledContract{
114114
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
115115
// contracts used in the Prague release.
116116
var PrecompiledContractsPrague = map[common.Address]PrecompiledContract{
117+
common.BytesToAddress([]byte{0x01}): &ecrecover{},
118+
common.BytesToAddress([]byte{0x02}): &sha256hash{},
119+
common.BytesToAddress([]byte{0x03}): &ripemd160hash{},
120+
common.BytesToAddress([]byte{0x04}): &dataCopy{},
121+
common.BytesToAddress([]byte{0x05}): &bigModExp{eip2565: true},
122+
common.BytesToAddress([]byte{0x06}): &bn256AddIstanbul{},
123+
common.BytesToAddress([]byte{0x07}): &bn256ScalarMulIstanbul{},
124+
common.BytesToAddress([]byte{0x08}): &bn256PairingIstanbul{},
125+
common.BytesToAddress([]byte{0x09}): &blake2F{},
126+
common.BytesToAddress([]byte{0x0a}): &kzgPointEvaluation{},
117127
common.BytesToAddress([]byte{0x0b}): &bls12381G1Add{},
118128
common.BytesToAddress([]byte{0x0c}): &bls12381G1Mul{},
119129
common.BytesToAddress([]byte{0x0d}): &bls12381G1MultiExp{},

0 commit comments

Comments
 (0)