Skip to content

Commit aa9d861

Browse files
committed
feat: track ecosystem on enclave wallet
1 parent 9f1264e commit aa9d861

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export type UserStatus = {
2929
linkedAccounts: {
3030
type: string;
3131
details:
32-
| { email: string; [key: string]: string }
33-
| { phone: string; [key: string]: string }
34-
| { address: string; [key: string]: string }
35-
| { id: string; [key: string]: string };
32+
| { email: string;[key: string]: string }
33+
| { phone: string;[key: string]: string }
34+
| { address: string;[key: string]: string }
35+
| { id: string;[key: string]: string };
3636
}[];
3737
wallets: UserWallet[];
3838
id: string;
@@ -131,6 +131,7 @@ export class EnclaveWallet implements IWebWallet {
131131
const client = this.client;
132132
const storage = this.localStorage;
133133
const address = this.address;
134+
const ecosystem = this.ecosystem;
134135

135136
const _signTransaction = async (tx: SendTransactionOption) => {
136137
const rpcRequest = getRpcClient({
@@ -145,15 +146,15 @@ export class EnclaveWallet implements IWebWallet {
145146
nonce: tx.nonce
146147
? toHex(tx.nonce)
147148
: toHex(
148-
await import(
149-
"../../../../rpc/actions/eth_getTransactionCount.js"
150-
).then(({ eth_getTransactionCount }) =>
151-
eth_getTransactionCount(rpcRequest, {
152-
address: this.address,
153-
blockTag: "pending",
154-
}),
155-
),
149+
await import(
150+
"../../../../rpc/actions/eth_getTransactionCount.js"
151+
).then(({ eth_getTransactionCount }) =>
152+
eth_getTransactionCount(rpcRequest, {
153+
address: this.address,
154+
blockTag: "pending",
155+
}),
156156
),
157+
),
157158
chainId: toHex(tx.chainId),
158159
};
159160

@@ -201,6 +202,7 @@ export class EnclaveWallet implements IWebWallet {
201202
// Non-blocking wait for receipt to track transaction
202203
trackTransaction({
203204
client,
205+
ecosystem,
204206
walletAddress: address,
205207
walletType: "inApp",
206208
transactionHash,

0 commit comments

Comments
 (0)