mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
use uint256.Int instead of big.Int
This commit is contained in:
parent
9f789b6272
commit
1700df3c89
1 changed files with 3 additions and 3 deletions
|
|
@ -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:]
|
||||
|
|
|
|||
Loading…
Reference in a new issue