Update tx_setcode.go

This commit is contained in:
rjl493456442 2025-07-31 09:33:49 +08:00 committed by GitHub
parent 743d25a3ec
commit fb743e9d00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,6 +105,7 @@ func SignSetCode(prv *ecdsa.PrivateKey, auth SetCodeAuthorization) (SetCodeAutho
}, nil
}
// SigHash returns the hash of SetCodeAuthorization for signing.
func (a *SetCodeAuthorization) SigHash() common.Hash {
return prefixedRlpHash(0x05, []any{
a.ChainID,