Silence catch error on purpose

This commit is contained in:
Willian Mitsuda 2021-11-29 14:28:35 -03:00
parent 63b79c5c75
commit 53630f43a4
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ export const useMultipleETHUSDOracle = (
const priceData = await ethFeed.latestRoundData({ blockTag });
return BigNumber.from(priceData.answer);
} catch (err) {
console.error(err);
// Silently ignore on purpose; it means the network or block number does
// not contain the chainlink feed contract
return undefined;
}
})()