use uint256.Int instead of big.Int

This commit is contained in:
Kevaundray Wedderburn 2025-07-11 00:08:49 +01:00
parent 9f789b6272
commit 1700df3c89

View file

@ -605,9 +605,9 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
func (c *bigModExp) Run(input []byte) ([]byte, error) { func (c *bigModExp) Run(input []byte) ([]byte, error) {
var ( var (
baseLen = new(big.Int).SetBytes(getData(input, 0, 32)).Uint64() baseLen = new(uint256.Int).SetBytes(getData(input, 0, 32)).Uint64()
expLen = new(big.Int).SetBytes(getData(input, 32, 32)).Uint64() expLen = new(uint256.Int).SetBytes(getData(input, 32, 32)).Uint64()
modLen = new(big.Int).SetBytes(getData(input, 64, 32)).Uint64() modLen = new(uint256.Int).SetBytes(getData(input, 64, 32)).Uint64()
) )
if len(input) > 96 { if len(input) > 96 {
input = input[96:] input = input[96:]