Switch to arb testnet

This commit is contained in:
Sewmina 2024-09-01 17:52:24 +05:30
parent e05fffea68
commit 1902df1f45

View File

@ -65,8 +65,8 @@ app.get("/getBalance", async (request, response) => {
}); });
const privateKey = "0x5fa4fe1e676efae441cefb579f9af9fea37752e76a7ea99a873ce76df7a5a8e9"; const privateKey = "0x5fa4fe1e676efae441cefb579f9af9fea37752e76a7ea99a873ce76df7a5a8e9";
const baseTestnetProvider = new ethers.JsonRpcProvider("https://sepolia.base.org"); const baseTestnetProvider = new ethers.JsonRpcProvider("https://sepolia-rollup.arbitrum.io/rpc");
const ercContractAddress = "0xf1691a65cde9A7bfcAb09117daD128452E2bA545"; const ercContractAddress = "0x1562aA47cab3Bbf4689D4cBB352e01d7A954EF37";
const utilWallet = new ethers.Wallet(privateKey, baseTestnetProvider); const utilWallet = new ethers.Wallet(privateKey, baseTestnetProvider);
const erc1155Abi = [ const erc1155Abi = [
// Only include the methods you need, for brevity we'll just include balanceOf // Only include the methods you need, for brevity we'll just include balanceOf