From 2bee0ad5f20e5c467229b3e846643e6d58bd8549 Mon Sep 17 00:00:00 2001 From: BarryTong65 Date: Sun, 29 Sep 2024 17:11:55 +0800 Subject: [PATCH] feat: update ap url --- README.md | 2 +- tests/env.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 290194e..7a84819 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ import {ethers} from "ethers"; import {PaymasterClient, SponsorClient} from 'megafuel-js-sdk'; const PAYMASTER_URL = "https://bsc-megafuel.nodereal.io" -const SPONSOR_URL = "https://open-platform.nodereal.io/{YOUR_API_KEY}/megafuel" +const SPONSOR_URL = "https://open-platform-ap.nodereal.io/{YOUR_API_KEY}/megafuel" const POLICY_UUID = "a2381160-xxxx-xxxx-xxxxceca86556834" const TOKEN_CONTRACT_ADDRESS = "0xeD2.....12Ee" diff --git a/tests/env.ts b/tests/env.ts index dd45768..4b63a3f 100644 --- a/tests/env.ts +++ b/tests/env.ts @@ -6,7 +6,7 @@ dotenv.config({ // testnet env export const OPEN_PLATFORM_PRIVATE_KEY = process.env.OPEN_PLATFORM_PRIVATE_KEY -export const SPONSOR_URL = `https://open-platform.nodereal.io/${OPEN_PLATFORM_PRIVATE_KEY}/megafuel-testnet` +export const SPONSOR_URL = `https://open-platform-ap.nodereal.io/${OPEN_PLATFORM_PRIVATE_KEY}/megafuel-testnet` export const CHAIN_ID = '97' export const CHAIN_URL = `https://bsc-testnet.nodereal.io/v1/${OPEN_PLATFORM_PRIVATE_KEY}` export const PAYMASTER_URL = 'https://bsc-megafuel-testnet.nodereal.io/97'