This commit is contained in:
Adrian Brzeziński 2024-05-13 13:54:51 +02:00
parent a6cbdfdf03
commit 783a3d0561
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ async function buildClient(): Promise<MangoClient> {
const clientKeypair = new Keypair()
const options = AnchorProvider.defaultOptions()
const rpcUrl = process.env.NEXT_PUBLIC_RPC_URL
const rpcUrl = process.env.NEXT_PUBLIC_ENDPOINT
if (!rpcUrl) {
throw new Error('MANGO_RPC_URL environment variable is not set')
}