Skip to content

Commit

Permalink
(BIDS-1496) Handle "error in batch call" issues correctly (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
recy21 authored Jan 30, 2023
1 parent 919452b commit 3ae839c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpc/erigon.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func (client *ErigonClient) GetBalances(pairs []*types.Eth1AddressBalance, addre

for i, el := range batchElements {
if el.Error != nil {
logrus.Errorf("error in batch call: %v", el.Error)
logrus.Warnf("error in batch call: %v", el.Error) // PPR: are smart contracts that pretend to implement the erc20 standard but are somehow buggy
}

res := strings.TrimPrefix(*el.Result.(*string), "0x")
Expand Down
2 changes: 1 addition & 1 deletion rpc/geth.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (client *GethClient) GetBalances(pairs []string) ([]*types.Eth1AddressBalan

for i, el := range batchElements {
if el.Error != nil {
logrus.Errorf("error in batch call: %v", el.Error)
logrus.Warnf("error in batch call: %v", el.Error) // PPR: are smart contracts that pretend to implement the erc20 standard but are somehow buggy
}

res := strings.TrimPrefix(*el.Result.(*string), "0x")
Expand Down

0 comments on commit 3ae839c

Please sign in to comment.