We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48553c5 commit dffb702Copy full SHA for dffb702
server/utils/wallets/importLocalWallet.ts
@@ -1,4 +1,5 @@
1
import { LocalWallet } from "@thirdweb-dev/wallets";
2
+import { LocalFileStorage, env } from "../../../core";
3
import { createWalletDetails } from "../../../src/db/wallets/createWalletDetails";
4
import { WalletType } from "../../../src/schema/wallet";
5
@@ -45,6 +46,12 @@ export const importLocalWallet = async (
45
46
break;
47
}
48
49
+ await wallet.save({
50
+ strategy: "encryptedJson",
51
+ password: env.THIRDWEB_API_SECRET_KEY,
52
+ storage: new LocalFileStorage(walletAddress),
53
+ });
54
+
55
await createWalletDetails({
56
address: walletAddress,
57
type: WalletType.local,
0 commit comments