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"));