diff --git a/.changeset/plenty-peas-act.md b/.changeset/plenty-peas-act.md new file mode 100644 index 0000000000..9c18351958 --- /dev/null +++ b/.changeset/plenty-peas-act.md @@ -0,0 +1,5 @@ +--- +'@chainlink/token-balance-adapter': patch +--- + +log descriptive error if ethers call fails diff --git a/packages/sources/token-balance/src/transport/evm.ts b/packages/sources/token-balance/src/transport/evm.ts index de9b389ce7..dbf739c82a 100644 --- a/packages/sources/token-balance/src/transport/evm.ts +++ b/packages/sources/token-balance/src/transport/evm.ts @@ -140,7 +140,13 @@ export class ERC20TokenBalanceTransport extends SubscriptionTransport { + logger.error( + `caught balanceOf error on ${network}, contract: ${contractAddress}, wallet ${wallet}`, + ) + throw err + }), ) } } @@ -203,7 +209,11 @@ export class ERC20TokenBalanceTransport extends SubscriptionTransport { + logger.error(`caught decimals error on ${network}, contract: ${contractAddress}`) + throw err + }), ) }