Skip to content

Commit a7745b0

Browse files
committed
fix: fixed precompiles import
1 parent 2055a0a commit a7745b0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

core/vm/contracts.go

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,15 @@ var PrecompiledContractsPrague = PrecompiledContracts{
136136
common.BytesToAddress([]byte{0x09}): &blake2F{},
137137
common.BytesToAddress([]byte{0x0a}): &kzgPointEvaluation{},
138138
common.BytesToAddress([]byte{0x0b}): &bls12381G1Add{},
139+
common.BytesToAddress([]byte{0x0c}): &bls12381G1MultiExp{},
140+
common.BytesToAddress([]byte{0x0d}): &bls12381G2Add{},
141+
common.BytesToAddress([]byte{0x0e}): &bls12381G2MultiExp{},
142+
common.BytesToAddress([]byte{0x0f}): &bls12381Pairing{},
143+
common.BytesToAddress([]byte{0x10}): &bls12381MapG1{},
144+
common.BytesToAddress([]byte{0x11}): &bls12381MapG2{},
145+
139146
// primev pre-compiles start at 0xf addresses
140147
common.BytesToAddress([]byte{0xf0}): &bls12381SignatureVerification{},
141-
142-
common.BytesToAddress([]byte{0x0c}): &bls12381G1Mul{},
143-
common.BytesToAddress([]byte{0x0d}): &bls12381G1MultiExp{},
144-
common.BytesToAddress([]byte{0x0e}): &bls12381G2Add{},
145-
common.BytesToAddress([]byte{0x0f}): &bls12381G2Mul{},
146-
common.BytesToAddress([]byte{0x10}): &bls12381G2MultiExp{},
147-
common.BytesToAddress([]byte{0x11}): &bls12381Pairing{},
148-
common.BytesToAddress([]byte{0x12}): &bls12381MapG1{},
149-
common.BytesToAddress([]byte{0x13}): &bls12381MapG2{},
150148
}
151149

152150
var PrecompiledContractsBLS = PrecompiledContractsPrague

0 commit comments

Comments
 (0)