File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import dotenv from "dotenv";
4
4
5
5
dotenv . config ( ) ;
6
6
7
- const provider = new ethers . JsonRpcProvider ( "https://api-archived.roninchain.com/rpc" ) ;
7
+ const provider = new ethers . JsonRpcProvider ( process . env . RONIN_MAINNET_RPC ) ;
8
8
const wallet = new ethers . Wallet ( process . env . RONIN_MAINNET_PK , provider ) ;
9
9
const renewList = JSON . parse ( fs . readFileSync ( "renew-list.json" , "utf8" ) ) ;
10
10
// Verify: https://app.roninchain.com/address/0x662852853614cbbb5d04bf2e29955b97e3c50b69
@@ -20,10 +20,10 @@ console.log(`Current nonce: ${nonce}`);
20
20
const account = wallet . address ;
21
21
const shouldSimulate = true ;
22
22
// 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
+ }
27
27
const contract = new ethers . Contract ( ronRegistrarControllerAddr , abi , provider ) ;
28
28
const chunkSize = 20 ;
29
29
You can’t perform that action at this time.
0 commit comments