Skip to content

Commit

Permalink
internal/ethapi: rename authlist to authorizationList in transaction …
Browse files Browse the repository at this point in the history
…args
  • Loading branch information
lightclient committed Dec 13, 2024
1 parent f33b87a commit f3a427e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/ethapi/transaction_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type TransactionArgs struct {
Proofs []kzg4844.Proof `json:"proofs"`

// For SetCodeTxType
AuthList []types.Authorization `json:"authList"`
AuthorizationList []types.Authorization `json:"authorizationList"`

// This configures whether blobs are allowed to be passed.
blobSidecarAllowed bool
Expand Down Expand Up @@ -476,7 +476,7 @@ func (args *TransactionArgs) ToMessage(baseFee *big.Int, skipNonceCheck, skipEoA
func (args *TransactionArgs) ToTransaction(defaultType int) *types.Transaction {
usedType := types.LegacyTxType
switch {
case args.AuthList != nil || defaultType == types.SetCodeTxType:
case args.AuthorizationList != nil || defaultType == types.SetCodeTxType:
usedType = types.SetCodeTxType
case args.BlobHashes != nil || defaultType == types.BlobTxType:
usedType = types.BlobTxType
Expand All @@ -497,8 +497,8 @@ func (args *TransactionArgs) ToTransaction(defaultType int) *types.Transaction {
al = *args.AccessList
}
authList := []types.Authorization{}
if args.AuthList != nil {
authList = args.AuthList
if args.AuthorizationList != nil {
authList = args.AuthorizationList
}
data = &types.SetCodeTx{
To: *args.To,
Expand Down

0 comments on commit f3a427e

Please sign in to comment.