Skip to content

Commit 918aed4

Browse files
authored
core/vm: add bn256ScalarMul testcase for zero scalar value (#26607)
EIP-196 allows a zero value in the scalar argument to precompile `0x07`. This change adds a test for that case.
1 parent 8e92881 commit 918aed4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/vm/testdata/precompiles/bn256ScalarMul.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,12 @@
124124
"Name": "cdetrio15",
125125
"Gas": 6000,
126126
"NoBenchmark": true
127+
},
128+
{
129+
"Input": "039730ea8dff1254c0fee9c0ea777d29a9c710b7e616683f194f18c43b43b869073a5ffcc6fc7a28c30723d6e58ce577356982d65b833a5a5c15bf9024b43d980000000000000000000000000000000000000000000000000000000000000000",
130+
"Expected": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
131+
"Name": "zeroScalar",
132+
"Gas": 6000,
133+
"NoBenchmark": true
127134
}
128135
]

0 commit comments

Comments
 (0)