update js lib, 增加跨链资产显示
This commit is contained in:
parent
5d34df6a47
commit
12d4426479
File diff suppressed because one or more lines are too long
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user