Skip to content

Commit

Permalink
internal/ethapi: use same receiver names (ethereum#24252)
Browse files Browse the repository at this point in the history
* Chore: use same receiver names

* Fix syntax issues
  • Loading branch information
aeharvlee authored and MariusVanDerWijden committed Jan 27, 2022
1 parent 02aea59 commit 5417ad1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/ethapi/transaction_args.go
Expand Up @@ -55,20 +55,20 @@ type TransactionArgs struct {
}

// from retrieves the transaction sender address.
func (arg *TransactionArgs) from() common.Address {
if arg.From == nil {
func (args *TransactionArgs) from() common.Address {
if args.From == nil {
return common.Address{}
}
return *arg.From
return *args.From
}

// data retrieves the transaction calldata. Input field is preferred.
func (arg *TransactionArgs) data() []byte {
if arg.Input != nil {
return *arg.Input
func (args *TransactionArgs) data() []byte {
if args.Input != nil {
return *args.Input
}
if arg.Data != nil {
return *arg.Data
if args.Data != nil {
return *args.Data
}
return nil
}
Expand Down

0 comments on commit 5417ad1

Please sign in to comment.