Skip to content

Commit 0413321

Browse files
committed
fix: deposit/withdraw incorrect wallet ref
1 parent 256e587 commit 0413321

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/core/entities/PlayerLocal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/core/systems/ServerSolana.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)