Skip to content

Commit

Permalink
Generate default nick from address in join
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Jan 30, 2025
1 parent 045e978 commit b0b1ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sdk-sui/src/sui-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class SuiTransport implements ITransport {

if (createProfileIfNeeded) {
let res = new ResponseHandle<CreatePlayerProfileResponse, CreatePlayerProfileError>()
await this.createPlayerProfile(wallet, { nick: 'RacePlayer' }, res)
await this.createPlayerProfile(wallet, { nick: wallet.walletAddr.substring(0, 6) }, res)
}

// get game object for token info and object ref
Expand Down

0 comments on commit b0b1ec9

Please sign in to comment.