Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

Commit ab46dc7

Browse files
author
Avaer Kazmer
committed
Api logging cleanup
1 parent 3cacb81 commit ab46dc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ async function _execute(spec) {
163163
return [];
164164
}
165165
})();
166-
if (coords.some(coord => coord[0] === 0 && coord[1] === 0)) {
166+
/* if (coords.some(coord => coord[0] === -1 && coord[1] === 0)) {
167167
console.log('get scene', sceneResult, owner, coords, apps);
168-
}
168+
} */
169169
return {
170170
owner,
171171
id: parseInt(tokenResult[1], 10),
@@ -210,7 +210,7 @@ async function _execute(spec) {
210210
return result;
211211
})();
212212
const apps = _encodeApps(appsData);
213-
console.log('set scene', coords, apps);
213+
console.log('set scene', {coordsData, appsData, coords, apps});
214214
const gas = await this.contracts.webascene.methods.setScene(coords, apps).estimateGas({from: this.eth.defaultAccount});
215215
const balance = await this.eth.getBalance(this.eth.defaultAccount);
216216
const {transactionHash} = await this.contracts.webascene.methods.setScene(coords, apps).send({from: this.eth.defaultAccount, gas});
@@ -224,7 +224,7 @@ async function _execute(spec) {
224224
case 'setSceneApps': {
225225
const {sceneId, apps: appsData} = data;
226226
const apps = _encodeApps(appsData);
227-
console.log('set scene apps', sceneId, apps);
227+
console.log('set scene apps', {sceneId, appsData, apps});
228228
const gas = await this.contracts.webascene.methods.setSceneApps(sceneId, apps).estimateGas({from: this.eth.defaultAccount});
229229
const balance = await this.eth.getBalance(this.eth.defaultAccount);
230230
const {transactionHash} = await this.contracts.webascene.methods.setSceneApps(sceneId, apps).send({from: this.eth.defaultAccount, gas});

0 commit comments

Comments
 (0)