mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/vm: optimize opCreate2 using uint256.Int.SetBytes20
This commit is contained in:
parent
0ec63272bf
commit
967c613802
1 changed files with 1 additions and 1 deletions
|
|
@ -718,7 +718,7 @@ func opCreate2(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
|||
if suberr != nil {
|
||||
stackvalue.Clear()
|
||||
} else {
|
||||
stackvalue.SetBytes(addr.Bytes())
|
||||
stackvalue.SetBytes20(addr.Bytes())
|
||||
}
|
||||
scope.Stack.push(&stackvalue)
|
||||
scope.Contract.RefundGas(returnGas, evm.Config.Tracer, tracing.GasChangeCallLeftOverRefunded)
|
||||
|
|
|
|||
Loading…
Reference in a new issue