Validate absolute path for substitute_type (#577)

* Remove commented code

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Ensure substitue path is global absolute

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Absolute path for build.rs

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Add ui test that fails to compile

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile authored and GitHub committed 2022-06-22 10:20:16 +01:00
1 parent c07b9e4be8
commit a9129863bd
5 files changed
+47 -2

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ async fn run() {
)]
pub mod node_runtime {{
#[subxt(substitute_type = "sp_arithmetic::per_things::Perbill")]
use sp_runtime::Perbill;
use ::sp_runtime::Perbill;
}}
"#,
metadata_path