1
This commit is contained in:
parent
01fd95bbf0
commit
a8d8bb879c
@ -62,21 +62,23 @@ async function buyPlanet(session) {
|
||||
]);
|
||||
const nonce = transId;
|
||||
const orderId = transId;
|
||||
const nftAddresses = [bc.getContractAddressByName('PLANET')];
|
||||
const amounts = [1];
|
||||
const signature = await bc.soliditySha3Sign(
|
||||
account,
|
||||
orderId,
|
||||
currency,
|
||||
price,
|
||||
nowTime,
|
||||
nonce
|
||||
...nftAddresses,
|
||||
...ids,
|
||||
...amounts,
|
||||
...[orderId, price, nowTime, nonce],
|
||||
);
|
||||
|
||||
const rspParams = [
|
||||
orderId,
|
||||
currency,
|
||||
price,
|
||||
nowTime,
|
||||
nonce,
|
||||
utils.jsonEncode(nftAddresses),
|
||||
utils.jsonEncode(ids),
|
||||
utils.jsonEncode(amounts),
|
||||
utils.jsonEncode([orderId, price, nowTime, nonce]),
|
||||
signature
|
||||
];
|
||||
utils.arrayToStrings(rspParams);
|
||||
|
Loading…
x
Reference in New Issue
Block a user