File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
{
11
11
"chain-id" : " blast" ,
12
12
"interval" : " 10m" ,
13
- "endpoint" : " https://rpc.blast.io"
13
+ "rpc- endpoint" : " https://rpc.blast.io"
14
14
}
15
15
]
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ async function loadConfig(configPath: string): Promise<LoadedConfig[]> {
45
45
z . strictObject ( {
46
46
"chain-id" : z . string ( ) ,
47
47
interval : z . string ( ) ,
48
- endpoint : z . string ( ) . optional ( ) ,
48
+ "rpc- endpoint" : z . string ( ) . optional ( ) ,
49
49
} ) ,
50
50
) ;
51
51
const configContent = ( await import ( configPath , {
@@ -68,13 +68,13 @@ async function loadConfig(configPath: string): Promise<LoadedConfig[]> {
68
68
`Multiple contracts found for chain ${ config [ "chain-id" ] } , check contract manager store.` ,
69
69
) ;
70
70
}
71
- if ( config . endpoint ) {
71
+ if ( config [ "rpc- endpoint" ] ) {
72
72
const evmChain = firstContract . chain ;
73
73
firstContract . chain = new EvmChain (
74
74
evmChain . getId ( ) ,
75
75
evmChain . isMainnet ( ) ,
76
76
evmChain . getNativeToken ( ) ,
77
- config . endpoint ,
77
+ config [ "rpc- endpoint" ] ,
78
78
evmChain . networkId ,
79
79
) ;
80
80
}
You can’t perform that action at this time.
0 commit comments