diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index 80832054fb1c..86b77bd553ab 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -279,3 +279,9 @@ func (args *TransactionArgs) toTransaction() *types.Transaction { } return types.NewTx(data) } + +// ToTransaction converts the arguments to a transaction. +// This assumes that setDefaults has been called. +func (args *TransactionArgs) ToTransaction() *types.Transaction { + return args.toTransaction() +}