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