File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ impl DriaNetwork {
37
37
38
38
pub fn discovery_url ( & self , version : & SemanticVersion ) -> String {
39
39
let base_url = match self {
40
- DriaNetwork :: Mainnet => "https://mainnet.dkn.dria.co/discovery/available-nodes" ,
41
- DriaNetwork :: Testnet => "https://testnet.dkn.dria.co/discovery/available-nodes" ,
40
+ DriaNetwork :: Mainnet => "https://mainnet.dkn.dria.co/discovery/v0/ available-nodes" ,
41
+ DriaNetwork :: Testnet => "https://testnet.dkn.dria.co/discovery/v0/ available-nodes" ,
42
42
} ;
43
43
44
44
format ! ( "{}/{}" , base_url, version. as_major_minor( ) )
@@ -67,11 +67,11 @@ mod tests {
67
67
68
68
assert_eq ! (
69
69
mainnet. discovery_url( & version) ,
70
- "https://mainnet.dkn.dria.co/discovery/available-nodes/1.0"
70
+ "https://mainnet.dkn.dria.co/discovery/v0/ available-nodes/1.0"
71
71
) ;
72
72
assert_eq ! (
73
73
testnet. discovery_url( & version) ,
74
- "https://testnet.dkn.dria.co/discovery/available-nodes/1.0"
74
+ "https://testnet.dkn.dria.co/discovery/v0/ available-nodes/1.0"
75
75
) ;
76
76
}
77
77
}
You can’t perform that action at this time.
0 commit comments