diff --git a/accounts/types.go b/accounts/types.go index f4e4951..2885544 100644 --- a/accounts/types.go +++ b/accounts/types.go @@ -691,8 +691,8 @@ type Transaction struct { PaymasterParams *types.PaymasterParams `json:"paymasterParams,omitempty"` } -// ToTransaction712 transforms Transaction to types.Transaction. -func (t *Transaction) ToTransaction712(from common.Address) *types.Transaction { +// ToTransaction transforms Transaction to types.Transaction. +func (t *Transaction) ToTransaction(from common.Address) *types.Transaction { return &types.Transaction{ Nonce: t.Nonce, GasTipCap: t.GasTipCap, diff --git a/accounts/wallet_l2.go b/accounts/wallet_l2.go index 4067689..b67075c 100644 --- a/accounts/wallet_l2.go +++ b/accounts/wallet_l2.go @@ -341,7 +341,7 @@ func (w *WalletL2) PopulateTransaction(ctx context.Context, tx Transaction) (*ty if tx.Data == nil { tx.Data = hexutil.Bytes{} } - return tx.ToTransaction712(w.auth.From), nil + return tx.ToTransaction(w.auth.From), nil } // SignTransaction returns a signed transaction that is ready to be broadcast to