Unverified Commit 03aaea11 authored by Denver's avatar Denver Committed by GitHub

internal/ethapi: use same receiver names (#24252)

* Chore: use same receiver names

* Fix syntax issues
parent 7dec26db
...@@ -55,20 +55,20 @@ type TransactionArgs struct { ...@@ -55,20 +55,20 @@ type TransactionArgs struct {
} }
// from retrieves the transaction sender address. // from retrieves the transaction sender address.
func (arg *TransactionArgs) from() common.Address { func (args *TransactionArgs) from() common.Address {
if arg.From == nil { if args.From == nil {
return common.Address{} return common.Address{}
} }
return *arg.From return *args.From
} }
// data retrieves the transaction calldata. Input field is preferred. // data retrieves the transaction calldata. Input field is preferred.
func (arg *TransactionArgs) data() []byte { func (args *TransactionArgs) data() []byte {
if arg.Input != nil { if args.Input != nil {
return *arg.Input return *args.Input
} }
if arg.Data != nil { if args.Data != nil {
return *arg.Data return *args.Data
} }
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment