File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1024,7 +1024,6 @@ export class PlayerLocal extends Entity {
10241024 changed = true
10251025 }
10261026 if ( data . hasOwnProperty ( 'wallet' ) ) {
1027- console . log ( 'yo' )
10281027 this . data . wallet = data . wallet
10291028 this . world . events . emit ( 'wallet' , { playerId : this . data . id , wallet : data . wallet } )
10301029 }
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class ServerSolana extends System {
7575 return new Promise ( async ( resolve , reject ) => {
7676 const hook = entity . getDeadHook ( )
7777 try {
78- const playerAddress = player . data . wallet . address
78+ const playerAddress = player . data . wallet
7979 if ( ! playerAddress ) return reject ( 'not_connected' )
8080 if ( ! isNumber ( amount ) ) return reject ( 'amount_invalid' )
8181 // make public keys
@@ -178,7 +178,7 @@ export class ServerSolana extends System {
178178 return new Promise ( async ( resolve , reject ) => {
179179 const hook = entity . getDeadHook ( )
180180 try {
181- const playerAddress = player . data . wallet . address
181+ const playerAddress = player . data . wallet
182182 if ( ! playerAddress ) return reject ( 'not_connected' )
183183 if ( ! isNumber ( amount ) ) return onError ( 'amount_invalid' )
184184 if ( ! worldKeypair ) return onError ( 'wallet_not_configured' )
You can’t perform that action at this time.
0 commit comments