fix web3 import

This commit is contained in:
tymur999
2024-07-12 18:53:30 -05:00
parent 0577da5fa2
commit 9c4eef91ac

View File

@@ -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)