Skip to content

Commit 83ca3df

Browse files
committed
fix: deposit/withdraw incorrect wallet ref
1 parent f6b4e2d commit 83ca3df

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
@@ -1019,7 +1019,6 @@ export class PlayerLocal extends Entity {
10191019
changed = true
10201020
}
10211021
if (data.hasOwnProperty('wallet')) {
1022-
console.log('yo')
10231022
this.data.wallet = data.wallet
10241023
this.world.events.emit('wallet', { playerId: this.data.id, wallet: data.wallet })
10251024
}

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)