mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
internal/ethapi: rename authlist to authorizationList in transaction args
This commit is contained in:
parent
f33b87a041
commit
f3a427e19b
1 changed files with 4 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ type TransactionArgs struct {
|
||||||
Proofs []kzg4844.Proof `json:"proofs"`
|
Proofs []kzg4844.Proof `json:"proofs"`
|
||||||
|
|
||||||
// For SetCodeTxType
|
// For SetCodeTxType
|
||||||
AuthList []types.Authorization `json:"authList"`
|
AuthorizationList []types.Authorization `json:"authorizationList"`
|
||||||
|
|
||||||
// This configures whether blobs are allowed to be passed.
|
// This configures whether blobs are allowed to be passed.
|
||||||
blobSidecarAllowed bool
|
blobSidecarAllowed bool
|
||||||
|
|
@ -476,7 +476,7 @@ func (args *TransactionArgs) ToMessage(baseFee *big.Int, skipNonceCheck, skipEoA
|
||||||
func (args *TransactionArgs) ToTransaction(defaultType int) *types.Transaction {
|
func (args *TransactionArgs) ToTransaction(defaultType int) *types.Transaction {
|
||||||
usedType := types.LegacyTxType
|
usedType := types.LegacyTxType
|
||||||
switch {
|
switch {
|
||||||
case args.AuthList != nil || defaultType == types.SetCodeTxType:
|
case args.AuthorizationList != nil || defaultType == types.SetCodeTxType:
|
||||||
usedType = types.SetCodeTxType
|
usedType = types.SetCodeTxType
|
||||||
case args.BlobHashes != nil || defaultType == types.BlobTxType:
|
case args.BlobHashes != nil || defaultType == types.BlobTxType:
|
||||||
usedType = types.BlobTxType
|
usedType = types.BlobTxType
|
||||||
|
|
@ -497,8 +497,8 @@ func (args *TransactionArgs) ToTransaction(defaultType int) *types.Transaction {
|
||||||
al = *args.AccessList
|
al = *args.AccessList
|
||||||
}
|
}
|
||||||
authList := []types.Authorization{}
|
authList := []types.Authorization{}
|
||||||
if args.AuthList != nil {
|
if args.AuthorizationList != nil {
|
||||||
authList = args.AuthList
|
authList = args.AuthorizationList
|
||||||
}
|
}
|
||||||
data = &types.SetCodeTx{
|
data = &types.SetCodeTx{
|
||||||
To: *args.To,
|
To: *args.To,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue