Commit 2a87e879 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #1323 from ethereum-optimism/fix/l2geth-remove-extra-reflect

l2geth: remove unnecessary reflect
parents b2b44b27 7ee76c23
---
'@eth-optimism/l2geth': patch
---
Remove an unnecessary use of `reflect` in l2geth
......@@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"math/big"
"reflect"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
......@@ -87,7 +86,7 @@ func getAccountNonce(evm *EVM, contract *Contract, args map[string]interface{})
return nil, errors.New("Could not parse address arg in getAccountNonce")
}
nonce := evm.StateDB.GetNonce(address)
return []interface{}{new(big.Int).SetUint64(reflect.ValueOf(nonce).Uint())}, nil
return []interface{}{new(big.Int).SetUint64(nonce)}, nil
}
func getAccountEthAddress(evm *EVM, contract *Contract, args map[string]interface{}) ([]interface{}, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment