Skip to content

Commit

Permalink
Hook delegator
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisChristou committed Dec 4, 2024
1 parent f435ab8 commit 6e7853e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/transactions/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,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 All @@ -303,6 +303,7 @@ func (t *Transactions) handleCallTransaction(w http.ResponseWriter, req *http.Re
return err
}

fmt.Println("HI!: ", txCallMsg.Delegator)
results, err := t.txCall(txCallMsg, summary.Header, st)
if err != nil {
return err
Expand Down

0 comments on commit 6e7853e

Please sign in to comment.