From 1700df3c8902dd222ea6d5f78a913d8ec9ada3a2 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Fri, 11 Jul 2025 00:08:49 +0100 Subject: [PATCH] use uint256.Int instead of big.Int --- core/vm/contracts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index d89164bd79..1d118a6d7c 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -605,9 +605,9 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 { func (c *bigModExp) Run(input []byte) ([]byte, error) { var ( - baseLen = new(big.Int).SetBytes(getData(input, 0, 32)).Uint64() - expLen = new(big.Int).SetBytes(getData(input, 32, 32)).Uint64() - modLen = new(big.Int).SetBytes(getData(input, 64, 32)).Uint64() + baseLen = new(uint256.Int).SetBytes(getData(input, 0, 32)).Uint64() + expLen = new(uint256.Int).SetBytes(getData(input, 32, 32)).Uint64() + modLen = new(uint256.Int).SetBytes(getData(input, 64, 32)).Uint64() ) if len(input) > 96 { input = input[96:]