diff --git a/server/web3sign/controllers/benftmall_trans.js b/server/web3sign/controllers/benftmall_trans.js index eeec201..930a320 100644 --- a/server/web3sign/controllers/benftmall_trans.js +++ b/server/web3sign/controllers/benftmall_trans.js @@ -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);