1
This commit is contained in:
parent
b2d2f49a88
commit
e9d7cec3b9
@ -83,8 +83,16 @@ async function activate721Nft(session) {
|
|||||||
['trans_id', transId]
|
['trans_id', transId]
|
||||||
]);
|
]);
|
||||||
const nonce = transId;
|
const nonce = transId;
|
||||||
const tokenIds = [tokenId, 1];
|
const nftList = [
|
||||||
utils.arrayToStrings(tokenIds);
|
{
|
||||||
|
'tokenId': tokenId,
|
||||||
|
'isMint': true
|
||||||
|
}
|
||||||
|
];
|
||||||
|
let nftListStr = '';
|
||||||
|
utils.forEach((item) => {
|
||||||
|
nftListStr += item['tokenId'].toString() + '1';
|
||||||
|
});
|
||||||
const signature = await bc.soliditySha3Sign(
|
const signature = await bc.soliditySha3Sign(
|
||||||
account,
|
account,
|
||||||
nftAddress,
|
nftAddress,
|
||||||
@ -92,9 +100,8 @@ async function activate721Nft(session) {
|
|||||||
netId,
|
netId,
|
||||||
nowTime,
|
nowTime,
|
||||||
nonce,
|
nonce,
|
||||||
...tokenIds
|
...nftListStr
|
||||||
);
|
);
|
||||||
const nftList = [];
|
|
||||||
|
|
||||||
let data = instance.methods.unlockOrMint
|
let data = instance.methods.unlockOrMint
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user