From 3c0d5c9e2dc0ca975c1cc998d0f18038c401a3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Sat, 4 Feb 2023 20:20:40 +0000 Subject: [PATCH 1/2] add bn256ScalarMul precompile test for zero scalar value. --- 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 2a28f6304bfa..56d42422709f 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": "cdetrio16", + "Gas": 6000, + "NoBenchmark": true } ] \ No newline at end of file From 4c711718f6ffa7c6b3581316ee1e1cd24d372d94 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 6 Feb 2023 05:21:42 -0500 Subject: [PATCH 2/2] Update core/vm/testdata/precompiles/bn256ScalarMul.json --- core/vm/testdata/precompiles/bn256ScalarMul.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/testdata/precompiles/bn256ScalarMul.json b/core/vm/testdata/precompiles/bn256ScalarMul.json index 56d42422709f..b0427fcc0555 100644 --- a/core/vm/testdata/precompiles/bn256ScalarMul.json +++ b/core/vm/testdata/precompiles/bn256ScalarMul.json @@ -128,7 +128,7 @@ { "Input": "039730ea8dff1254c0fee9c0ea777d29a9c710b7e616683f194f18c43b43b869073a5ffcc6fc7a28c30723d6e58ce577356982d65b833a5a5c15bf9024b43d980000000000000000000000000000000000000000000000000000000000000000", "Expected": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "Name": "cdetrio16", + "Name": "zeroScalar", "Gas": 6000, "NoBenchmark": true }