core/vm: optimize opCreate using uint256.Int.SetBytes20

This commit is contained in:
cuiweixie 2025-10-19 00:37:47 +08:00
parent 0ec63272bf
commit e3f761ad27
No known key found for this signature in database
GPG key ID: 16DF64EE15E495A3

View file

@ -681,7 +681,7 @@ func opCreate(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
} else if suberr != nil && suberr != ErrCodeStoreOutOfGas {
stackvalue.Clear()
} else {
stackvalue.SetBytes(addr.Bytes())
stackvalue.SetBytes20(addr.Bytes())
}
scope.Stack.push(&stackvalue)