Skip to content

Commit 7df99b1

Browse files
committed
fix test
1 parent 2a07c96 commit 7df99b1

File tree

2 files changed

+5485
-2
lines changed

2 files changed

+5485
-2
lines changed

core/vm/contracts_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ var allPrecompiles = map[common.Address]PrecompiledContract{
6868
common.BytesToAddress([]byte{18}): &bls12381MapG2{},
6969
common.BytesToAddress([]byte{0xf8}): &bn256PairingIstanbul{limitInputLength: true},
7070

71-
common.BytesToAddress([]byte{0x01, 0x00}): &p256Verify{},
71+
common.BytesToAddress([]byte{0x01, 0x00}): &p256Verify{eip7951: false},
72+
common.BytesToAddress([]byte{0x01, 0x01}): &p256Verify{eip7951: true},
7273
}
7374

7475
// EIP-152 test vectors
@@ -415,4 +416,10 @@ func BenchmarkPrecompiledP256Verify(bench *testing.B) {
415416
benchmarkPrecompiled("0b", t, bench)
416417
}
417418

418-
func TestPrecompiledP256Verify(t *testing.T) { testJson("p256Verify", "0b", t) }
419+
func TestPrecompiledP256Verify(t *testing.T) {
420+
testJson("p256Verify", "0x0100", t)
421+
}
422+
423+
func TestPrecompiledP256VerifyGalileo(t *testing.T) {
424+
testJson("p256VerifyGalileo", "0x0101", t)
425+
}

0 commit comments

Comments
 (0)