update dist

This commit is contained in:
cebgcontract 2022-12-16 18:02:25 +08:00
parent 1aadee7f31
commit b4521fcf7d
2 changed files with 19 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -226,6 +226,23 @@ function sendErc721(funId, address, to, tokenId, estimate) {
});
}
/**
* get balance of ERC1155
* @param {string} address:
* @param {string} account:
* @param {string} tokenId:
*/
function erc1155Balance(funId, address, account, tokenId) {
jc.wallet
.erc1155Balance(address, account, tokenId)
.then((result) => {
jsb.jcCallback(funId, JSON.stringify({ errcode: 0, data: result }));
})
.catch((err) => {
jsb.jcCallback(funId, JSON.stringify({ errcode: 1, errmsg: err }));
});
}
/**
* send ERC1155 to to
*/