From 235024bcd2deed3c2f9284315be3de9b41046c1d Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 20 Nov 2024 22:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01-wallet/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01-wallet/index.ts b/01-wallet/index.ts index 6626f95..d7f27bf 100644 --- a/01-wallet/index.ts +++ b/01-wallet/index.ts @@ -1,5 +1,5 @@ import { Keypair } from "@solana/web3.js"; -import fs from "fs"; +import * as fs from "fs"; import { Buffer } from 'buffer'; // 创建钱包 @@ -23,4 +23,4 @@ fs.writeFileSync("wallet.json", JSON.stringify(Array.from(secretKey))); // console.log("钱包公钥:", wallet.publicKey.toString()); // console.log("钱包私钥:", wallet.secretKey); -// console.log("钱包私钥(base64):", Buffer.from(secretKey).toString("base64")); \ No newline at end of file +// console.log("钱包私钥(base64):", Buffer.from(secretKey).toString("base64"));