Skip to content

Commit

Permalink
core/vm: add bn256ScalarMul testcase for zero scalar value (#26607)
Browse files Browse the repository at this point in the history
EIP-196 allows a zero value in the scalar argument to precompile `0x07`. This change adds a test for that case.
  • Loading branch information
raulk authored Feb 6, 2023
1 parent 8e92881 commit 918aed4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/vm/testdata/precompiles/bn256ScalarMul.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,12 @@
"Name": "cdetrio15",
"Gas": 6000,
"NoBenchmark": true
},
{
"Input": "039730ea8dff1254c0fee9c0ea777d29a9c710b7e616683f194f18c43b43b869073a5ffcc6fc7a28c30723d6e58ce577356982d65b833a5a5c15bf9024b43d980000000000000000000000000000000000000000000000000000000000000000",
"Expected": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"Name": "zeroScalar",
"Gas": 6000,
"NoBenchmark": true
}
]

0 comments on commit 918aed4

Please sign in to comment.