Skip to content

Commit

Permalink
Hook delegator
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisChristou committed Dec 5, 2024
1 parent f435ab8 commit da734f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/transactions/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ func (t *Transactions) txCall(
return nil, fmt.Errorf("no origin address specified")
}

// todo handle the txCallMsg.Delegator
txCallData, err := ConvertCallTransaction(txCallMsg, header)
if err != nil {
return nil, fmt.Errorf("unable to convert transaction: %w", err)
Expand Down Expand Up @@ -277,7 +276,7 @@ func (t *Transactions) txCall(
},
t.forkConfig)

receipt, err := rt.CallTransaction(txCallData, &callAddr, nil) // TODO hook delegator
receipt, err := rt.CallTransaction(txCallData, &callAddr, txCallMsg.Delegator)
if err != nil {
// TODO add some metric here
return convertErrorCallReceipt(err, txCallMsg, &callAddr)
Expand Down

0 comments on commit da734f1

Please sign in to comment.