fix: sinkAddress getter

This commit is contained in:
Mohamed Sohail 2024-11-14 12:43:39 +03:00
parent bba5be8964
commit 93118a8e9f
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -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