Skip to content

Commit

Permalink
fix: sinkAddress getter
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Nov 14, 2024
1 parent bba5be8 commit 93118a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/add_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (h *Handler) AddToken(ctx context.Context, event event.Event) error {

if err := h.chainProvider.Client.CallCtx(
ctx,
eth.CallFunc(contractAddress, decimalsGetter).Returns(&tokenDecimals),
eth.CallFunc(contractAddress, sinkAddressGetter).Returns(&sinkAddress),
); err != nil {
// This will most likely revert if the contract does not have a sinkAddress
// Instead of handling the error we just ignore it and set the value to 0
Expand Down

0 comments on commit 93118a8

Please sign in to comment.