From 918aed4e314f1db27191c0b0611ff02d3759122c Mon Sep 17 00:00:00 2001 From: raulk Date: Mon, 6 Feb 2023 12:41:29 +0000 Subject: [PATCH] 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. --- core/vm/testdata/precompiles/bn256ScalarMul.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/vm/testdata/precompiles/bn256ScalarMul.json b/core/vm/testdata/precompiles/bn256ScalarMul.json index 2a28f6304..b0427fcc0 100644 --- a/core/vm/testdata/precompiles/bn256ScalarMul.json +++ b/core/vm/testdata/precompiles/bn256ScalarMul.json @@ -124,5 +124,12 @@ "Name": "cdetrio15", "Gas": 6000, "NoBenchmark": true + }, + { + "Input": "039730ea8dff1254c0fee9c0ea777d29a9c710b7e616683f194f18c43b43b869073a5ffcc6fc7a28c30723d6e58ce577356982d65b833a5a5c15bf9024b43d980000000000000000000000000000000000000000000000000000000000000000", + "Expected": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "Name": "zeroScalar", + "Gas": 6000, + "NoBenchmark": true } ] \ No newline at end of file