@@ -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