Skip to content

Commit

Permalink
fix: set wallet address for sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosp1011 committed Oct 23, 2024
1 parent 098388e commit b029743
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/wallet/backend/src/gatehub/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,8 @@ export class GateHubService {
firstName: string,
lastName: string
): Promise<string> {
const { account } = await this.createDefaultAccountAndWAForManagedUser(
userId,
true
)
const { account, walletAddress } =
await this.createDefaultAccountAndWAForManagedUser(userId, true)

const requestBody: ICreateCustomerRequest = {
walletAddress: account.gateHubWalletId,
Expand All @@ -232,7 +230,8 @@ export class GateHubService {
const cardId = customer.customers.accounts![0].cards![0].id

await User.query().findById(userId).patch({
customerId
customerId,
cardWalletAddress: walletAddress
})

await Account.query().findById(account.id).patch({
Expand Down

0 comments on commit b029743

Please sign in to comment.