修改nft商城购买

This commit is contained in:
CounterFire2023 2023-06-21 11:13:07 +08:00
parent a11c57ed8c
commit d343d011cf
2 changed files with 38 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -457,3 +457,40 @@ function gameMallBuy(funId, orderId, currency, price, startTime, saltNonce, sign
); );
} }
// end of mall // end of mall
// begin of NFT mall
function nftMallBuy(funId, currency, addresses, ids, amounts, values, signature, gas, estimate) {
// addresses = JSON.parse(addresses);
// ids = JSON.parse(ids);
// amounts = JSON.parse(amounts);
// values = JSON.parse(values);
currency = '0x2C7221588D4FBac2585D71618CD540e74c7413B8';
addresses = ['0xae37bb7BcA26Bab9a11D8BaE8fdB97f63b82c189'];
ids = ['10'];
amounts = ['1'];
values = [
'50436890550040088000000000000000000000000000000000000000000000000000000000000',
'1000000000000000000',
'1687259171',
'50436890550040088000000000000000000000000000000000000000000000000000000000000',
];
signature =
'0xee9d497dac1ec563800a112424fb8f423610ff3996877049493e273fe9ec5e9610c441eeb19de4eaf190f2ac084da250eac3ea2b29ca1c397c2c3cfd246bfd5d1c';
estimate = '0';
promiseCb(
funId,
jc.wallet.jcStandard.mallBuy({
currency,
addresses,
ids,
amounts,
values,
signature,
gas,
estimate,
}),
(v) => JSON.stringify(v)
);
}
// end of NFT mall