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";
88export 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 ,
You can’t perform that action at this time.
0 commit comments