mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/vm: optimize opTload using uint256.Int.SetBytes32
This commit is contained in:
parent
0ec63272bf
commit
fbfeaea6f7
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ func opTload(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
loc := scope.Stack.peek()
|
loc := scope.Stack.peek()
|
||||||
hash := common.Hash(loc.Bytes32())
|
hash := common.Hash(loc.Bytes32())
|
||||||
val := evm.StateDB.GetTransientState(scope.Contract.Address(), hash)
|
val := evm.StateDB.GetTransientState(scope.Contract.Address(), hash)
|
||||||
loc.SetBytes(val.Bytes())
|
loc.SetBytes32(val.Bytes())
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue