From 9c4eef91ac68a9e1adb1ecf168060f77ce7e3477 Mon Sep 17 00:00:00 2001 From: tymur999 Date: Fri, 12 Jul 2024 18:53:30 -0500 Subject: [PATCH] fix web3 import --- config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.ts b/config.ts index 10b3f48..70360d7 100644 --- a/config.ts +++ b/config.ts @@ -1,10 +1,10 @@ -import web3, {Connection, PublicKey} from "@solana/web3.js"; +import {Keypair, Connection} from "@solana/web3.js"; import {Wallet} from "@project-serum/anchor"; export class Config { public static RPC_URL: string = process.env.RPC_URL!; public static solWallet = new Wallet( - web3.Keypair.fromSeed( + Keypair.fromSeed( Uint8Array.from( JSON.parse(process.env.WALLET!) ).slice(0, 32)