Skip to content

Commit 0a798c5

Browse files
[SDK] Add smartAccountAddress to getUser result (#6690)
1 parent cfacfc2 commit 0a798c5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/five-buses-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add smartAccountAddress to getUser result

packages/thirdweb/src/wallets/in-app/core/users/getUser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { Ecosystem } from "../wallet/types.js";
88
export type GetUserResult = {
99
userId: string;
1010
walletAddress: string;
11+
smartAccountAddress?: string;
1112
email?: string;
1213
phone?: string;
1314
createdAt: string;
@@ -100,6 +101,7 @@ export async function getUser({
100101
const data = (await res.json()) as {
101102
userId: string;
102103
walletAddress: string;
104+
smartAccountAddress?: string;
103105
email?: string;
104106
phone?: string;
105107
createdAt: string;
@@ -110,6 +112,7 @@ export async function getUser({
110112
data.map((item) => ({
111113
userId: item.userId,
112114
walletAddress: item.walletAddress,
115+
smartAccountAddress: item.smartAccountAddress,
113116
email: item.email,
114117
phone: item.phone,
115118
createdAt: item.createdAt,

0 commit comments

Comments
 (0)