Skip to content

Commit

Permalink
fix input/output size in staticcall for addition/scalar_mul
Browse files Browse the repository at this point in the history
  • Loading branch information
dark64 committed Apr 3, 2024
1 parent f102933 commit 8bf1140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zokrates_proof_systems/src/solidity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}
Expand Down

0 comments on commit 8bf1140

Please sign in to comment.