mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/vm: optimize opCreate using uint256.Int.SetBytes20
This commit is contained in:
parent
0ec63272bf
commit
e3f761ad27
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ func opCreate(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
} else if suberr != nil && suberr != ErrCodeStoreOutOfGas {
|
} else if suberr != nil && suberr != ErrCodeStoreOutOfGas {
|
||||||
stackvalue.Clear()
|
stackvalue.Clear()
|
||||||
} else {
|
} else {
|
||||||
stackvalue.SetBytes(addr.Bytes())
|
stackvalue.SetBytes20(addr.Bytes())
|
||||||
}
|
}
|
||||||
scope.Stack.push(&stackvalue)
|
scope.Stack.push(&stackvalue)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue