mirror of
https://github.com/tymur999/sol-incinerator-oss.git
synced 2025-08-05 16:20:35 +00:00
fix web3 import
This commit is contained in:
@@ -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";
|
import {Wallet} from "@project-serum/anchor";
|
||||||
|
|
||||||
export class Config {
|
export class Config {
|
||||||
public static RPC_URL: string = process.env.RPC_URL!;
|
public static RPC_URL: string = process.env.RPC_URL!;
|
||||||
public static solWallet = new Wallet(
|
public static solWallet = new Wallet(
|
||||||
web3.Keypair.fromSeed(
|
Keypair.fromSeed(
|
||||||
Uint8Array.from(
|
Uint8Array.from(
|
||||||
JSON.parse(process.env.WALLET!)
|
JSON.parse(process.env.WALLET!)
|
||||||
).slice(0, 32)
|
).slice(0, 32)
|
||||||
|
Reference in New Issue
Block a user