From a77407237213833473365b73d24be6d255cccab8 Mon Sep 17 00:00:00 2001 From: dark64 Date: Wed, 3 Apr 2024 19:45:01 +0200 Subject: [PATCH] fix input/output size in staticcall for addition/scalar_mul --- zokrates_proof_systems/src/solidity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zokrates_proof_systems/src/solidity.rs b/zokrates_proof_systems/src/solidity.rs index f30e27f85..1a4d9c81f 100644 --- a/zokrates_proof_systems/src/solidity.rs +++ b/zokrates_proof_systems/src/solidity.rs @@ -456,7 +456,7 @@ library Pairing { input[3] = p2.Y; bool success; assembly { - success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60) + success := staticcall(sub(gas(), 2000), 6, input, 0x80, r, 0x40) // Use "invalid" to make gas estimation work switch success case 0 { invalid() } }