mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-31 08:46:15 +00:00
Fix: size in bytes of input and output were too high
This commit is contained in:
parent
80dfa41e32
commit
91388096c1
@ -44,7 +44,7 @@ library Pairing {
|
|||||||
bool success;
|
bool success;
|
||||||
// solhint-disable-next-line no-inline-assembly
|
// solhint-disable-next-line no-inline-assembly
|
||||||
assembly {
|
assembly {
|
||||||
success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)
|
success := staticcall(sub(gas(), 2000), 6, input, 128, sum, 64)
|
||||||
}
|
}
|
||||||
require(success, "pairing-add-failed");
|
require(success, "pairing-add-failed");
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ library Pairing {
|
|||||||
bool success;
|
bool success;
|
||||||
// solhint-disable-next-line no-inline-assembly
|
// solhint-disable-next-line no-inline-assembly
|
||||||
assembly {
|
assembly {
|
||||||
success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)
|
success := staticcall(sub(gas(), 2000), 7, input, 96, product, 64)
|
||||||
}
|
}
|
||||||
require(success, "pairing-mul-failed");
|
require(success, "pairing-mul-failed");
|
||||||
}
|
}
|
||||||
@ -94,10 +94,10 @@ library Pairing {
|
|||||||
success := staticcall(
|
success := staticcall(
|
||||||
sub(gas(), 2000),
|
sub(gas(), 2000),
|
||||||
8,
|
8,
|
||||||
add(input, 0x20),
|
add(input, 32),
|
||||||
mul(inputSize, 0x20),
|
mul(inputSize, 32),
|
||||||
out,
|
out,
|
||||||
0x20
|
32
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
require(success, "pairing-opcode-failed");
|
require(success, "pairing-opcode-failed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user