fix mapg2 gas

This commit is contained in:
Jared Wasinger 2024-12-09 18:59:09 +07:00
parent 8bbbee12cf
commit 31b46209a7

View file

@ -158,7 +158,7 @@ const (
Bls12381PairingBaseGas uint64 = 78000 // Base gas price for BLS12-381 elliptic curve pairing check
Bls12381PairingPerPairGas uint64 = 51600 // Per-point pair gas price for BLS12-381 elliptic curve pairing check
Bls12381MapG1Gas uint64 = 4125 // Gas price for BLS12-381 mapping field element to G1 operation
Bls12381MapG2Gas uint64 = 16866 // Gas price for BLS12-381 mapping field element to G2 operation
Bls12381MapG2Gas uint64 = 17000 // Gas price for BLS12-381 mapping field element to G2 operation
// The Refund Quotient is the cap on how much of the used gas can be refunded. Before EIP-3529,
// up to half the consumed gas could be refunded. Redefined as 1/5th in EIP-3529