diff --git a/parity/dapps.rs b/parity/dapps.rs index c15b16337..ebd8937eb 100644 --- a/parity/dapps.rs +++ b/parity/dapps.rs @@ -297,6 +297,7 @@ mod server { version: app.version, author: app.author, icon_url: app.icon_url, + local_url: app.local_url, }) .collect() } diff --git a/rpc/src/v1/types/dapps.rs b/rpc/src/v1/types/dapps.rs index fb4a868f0..907a6c2cc 100644 --- a/rpc/src/v1/types/dapps.rs +++ b/rpc/src/v1/types/dapps.rs @@ -31,6 +31,9 @@ pub struct LocalDapp { /// Dapp icon #[serde(rename="iconUrl")] pub icon_url: String, + /// Local development Url + #[serde(rename="localUrl")] + pub local_url: Option, } #[cfg(test)] @@ -40,7 +43,7 @@ mod tests { #[test] fn dapp_serialization() { - let s = r#"{"id":"skeleton","name":"Skeleton","description":"A skeleton dapp","version":"0.1","author":"Parity Technologies Ltd","iconUrl":"title.png"}"#; + let s = r#"{"id":"skeleton","name":"Skeleton","description":"A skeleton dapp","version":"0.1","author":"Parity Technologies Ltd","iconUrl":"title.png","localUrl":"http://localhost:5000"}"#; let dapp = LocalDapp { id: "skeleton".into(), @@ -49,6 +52,7 @@ mod tests { version: "0.1".into(), author: "Parity Technologies Ltd".into(), icon_url: "title.png".into(), + local_url: "http://localhost:5000".into(), }; let serialized = serde_json::to_string(&dapp).unwrap();