Skip to content

Commit 94103fc

Browse files
committed
script: update rpc
1 parent 068105e commit 94103fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script/operations/bulk-renew.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import dotenv from "dotenv";
44

55
dotenv.config();
66

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

0 commit comments

Comments
 (0)