mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Update state_transition.go
This commit is contained in:
parent
b2fbc132d8
commit
aa66069101
1 changed files with 2 additions and 2 deletions
|
|
@ -480,7 +480,7 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ret []byte
|
ret []byte
|
||||||
vmerr error // vm errors do not effect consensus and are therefore not assigned to err
|
vmerr error // vm errors do not affect consensus and are therefore not assigned to err
|
||||||
)
|
)
|
||||||
if contractCreation {
|
if contractCreation {
|
||||||
ret, _, st.gasRemaining, vmerr = st.evm.Create(msg.From, msg.Data, st.gasRemaining, value)
|
ret, _, st.gasRemaining, vmerr = st.evm.Create(msg.From, msg.Data, st.gasRemaining, value)
|
||||||
|
|
@ -572,7 +572,7 @@ func (st *stateTransition) validateAuthorization(auth *types.SetCodeAuthorizatio
|
||||||
return authority, fmt.Errorf("%w: %v", ErrAuthorizationInvalidSignature, err)
|
return authority, fmt.Errorf("%w: %v", ErrAuthorizationInvalidSignature, err)
|
||||||
}
|
}
|
||||||
// Check the authority account
|
// Check the authority account
|
||||||
// 1) doesn't have code or has exisiting delegation
|
// 1) doesn't have code or has existing delegation
|
||||||
// 2) matches the auth's nonce
|
// 2) matches the auth's nonce
|
||||||
//
|
//
|
||||||
// Note it is added to the access list even if the authorization is invalid.
|
// Note it is added to the access list even if the authorization is invalid.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue