Skip to content

Commit

Permalink
Return undefined when a value is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
cbovis committed Apr 11, 2020
1 parent e9f2723 commit d8cae4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getTokenMetadata = async (address, options) => {
const provider = new ethers.providers.JsonRpcProvider(options.rpcEndpoint);
const contract = new ethers.Contract(address, abi, provider);
const handleError = () => {
return null;
return undefined;
};

const [name, symbol, decimals] = await Promise.all([
Expand Down

0 comments on commit d8cae4a

Please sign in to comment.