mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/vm: optimize opCallDataLoad using uint256.Int.SetBytes32
This commit is contained in:
parent
0ec63272bf
commit
2bf33638ae
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ func opCallDataLoad(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
|||
x := scope.Stack.peek()
|
||||
if offset, overflow := x.Uint64WithOverflow(); !overflow {
|
||||
data := getData(scope.Contract.Input, offset, 32)
|
||||
x.SetBytes(data)
|
||||
x.SetBytes32(data)
|
||||
} else {
|
||||
x.Clear()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue