File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/thirdweb/src/wallets/in-app/core/users Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Add smartAccountAddress to getUser result
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { Ecosystem } from "../wallet/types.js";
8
8
export type GetUserResult = {
9
9
userId : string ;
10
10
walletAddress : string ;
11
+ smartAccountAddress ?: string ;
11
12
email ?: string ;
12
13
phone ?: string ;
13
14
createdAt : string ;
@@ -100,6 +101,7 @@ export async function getUser({
100
101
const data = ( await res . json ( ) ) as {
101
102
userId : string ;
102
103
walletAddress : string ;
104
+ smartAccountAddress ?: string ;
103
105
email ?: string ;
104
106
phone ?: string ;
105
107
createdAt : string ;
@@ -110,6 +112,7 @@ export async function getUser({
110
112
data . map ( ( item ) => ( {
111
113
userId : item . userId ,
112
114
walletAddress : item . walletAddress ,
115
+ smartAccountAddress : item . smartAccountAddress ,
113
116
email : item . email ,
114
117
phone : item . phone ,
115
118
createdAt : item . createdAt ,
You can’t perform that action at this time.
0 commit comments