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
2022-06-22 12:20:16 +03:00
committed by GitHub
parent c07b9e4be8
commit a9129863bd
5 changed files with 47 additions and 2 deletions
+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