Skip to content

Commit

Permalink
feat: non ERC721 / ERC1155 tokens functionality SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Nov 30, 2021
1 parent 95c1ca9 commit d3778c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lib/tokens.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function getERCInfo(ercAddress, ethereumAddress, provider, options) {
const abi = getAbi(TOKEN_TYPE.ERC721);
const ercContract = new provider.eth.Contract(abi, ercAddress);
balance = await ercContract.methods.balanceOf(ethereumAddress).call();
} else if (tokenType === TOKEN_TYPE.ERC1155) {
} else if (tokenType === TOKEN_TYPE.ERC1155) {
// ERC1155
const abi = getAbi(TOKEN_TYPE.ERC1155);
const ercContract = new provider.eth.Contract(abi, ercAddress);
Expand Down

0 comments on commit d3778c9

Please sign in to comment.