This commit is contained in:
aozhiwei 2024-06-04 15:25:08 +08:00
parent b2d2f49a88
commit e9d7cec3b9

View File

@ -83,8 +83,16 @@ async function activate721Nft(session) {
['trans_id', transId]
]);
const nonce = transId;
const tokenIds = [tokenId, 1];
utils.arrayToStrings(tokenIds);
const nftList = [
{
'tokenId': tokenId,
'isMint': true
}
];
let nftListStr = '';
utils.forEach((item) => {
nftListStr += item['tokenId'].toString() + '1';
});
const signature = await bc.soliditySha3Sign(
account,
nftAddress,
@ -92,9 +100,8 @@ async function activate721Nft(session) {
netId,
nowTime,
nonce,
...tokenIds
...nftListStr
);
const nftList = [];
let data = instance.methods.unlockOrMint
(