Use BigInt for gas calculation instead of long