diff --git a/src/index.ts b/src/index.ts index 2fcd2e4..16fd2a4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -581,6 +581,19 @@ export default class JCWallet { }); } + public async erc1155Balance( + address: string, + account: string, + tokenId: string + ) { + let result = await this.erc1155Standard.getBalanceOf( + address, + account, + tokenId + ); + return result; + } + public async erc1155Info(address: string) {} public async erc1155List(address: string, account?: string) { diff --git a/src/standards/ERC1155Standard.ts b/src/standards/ERC1155Standard.ts index 5ce5f59..ff6a6dd 100644 --- a/src/standards/ERC1155Standard.ts +++ b/src/standards/ERC1155Standard.ts @@ -93,7 +93,7 @@ export class ERC1155Standard { address: string, tokenId: string ): Promise => { - const contract = new this.web3.eth.Contract(abiERC1155, address); + const contract = new this.web3.eth.Contract(abiERC1155, contractAddress); return new Promise((resolve, reject) => { contract.methods.balanceOf( address,