update js lib, 增加跨链资产显示

This commit is contained in:
CounterFire2023 2023-06-30 17:49:04 +08:00
parent 5d34df6a47
commit 12d4426479
2 changed files with 21 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -156,6 +156,16 @@ function sendErc721(funId, address, to, tokenId, estimate) {
promiseCb(funId, jc.wallet.sendNFT(address, to, tokenId, estimate));
}
/**
* get balance of ERC721
* @param {string} address: contract address of NFT
* @param {string} account: wallet address
* @param {string} chainId: chain id, number string
*/
function erc721Balance(funId, address, account, chainId) {
promiseCb(funId, jc.wallet.erc721Standard.getBalance(address, account, chainId));
}
/**
* get balance of ERC1155
* @param {string} address: