Skip to content

Commit

Permalink
script: update rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Nov 4, 2024
1 parent 068105e commit 94103fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script/operations/bulk-renew.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import dotenv from "dotenv";

dotenv.config();

const provider = new ethers.JsonRpcProvider("https://api-archived.roninchain.com/rpc");
const provider = new ethers.JsonRpcProvider(process.env.RONIN_MAINNET_RPC);
const wallet = new ethers.Wallet(process.env.RONIN_MAINNET_PK, provider);
const renewList = JSON.parse(fs.readFileSync("renew-list.json", "utf8"));
// Verify: https://app.roninchain.com/address/0x662852853614cbbb5d04bf2e29955b97e3c50b69
Expand All @@ -20,10 +20,10 @@ console.log(`Current nonce: ${nonce}`);
const account = wallet.address;
const shouldSimulate = true;
// Assert the list is unique
// if (new Set(renewList).size !== renewList.length) {
// console.error("List is not unique");
// process.exit(1);
// }
if (new Set(renewList).size !== renewList.length) {
console.error("List is not unique");
process.exit(1);
}
const contract = new ethers.Contract(ronRegistrarControllerAddr, abi, provider);
const chunkSize = 20;

Expand Down

0 comments on commit 94103fc

Please sign in to comment.