Skip to content

Commit ed2a55e

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

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

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

Lines changed: 14 additions & 13 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

@@ -198,9 +199,9 @@ export class EnclaveWallet implements IWebWallet {
198199
signedTx,
199200
);
200201

201-
// Non-blocking wait for receipt to track transaction
202202
trackTransaction({
203203
client,
204+
ecosystem,
204205
walletAddress: address,
205206
walletType: "inApp",
206207
transactionHash,

0 commit comments

Comments
 (0)