update dist
This commit is contained in:
parent
1aadee7f31
commit
b4521fcf7d
File diff suppressed because one or more lines are too long
17
js/main.js
17
js/main.js
@ -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
|
* send ERC1155 to to
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user