mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +00:00
Allow for remapping type parameters in type substitutions (#735)
* feat!: Allow for remapping type parameters in type substitutions * chore: cargo fmt * chore: cargo clippy * chore: Remove some old code * a little tidy * address comment nit Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
@@ -89,12 +89,13 @@ async fn run() {
|
||||
r#"
|
||||
#[subxt::subxt(
|
||||
runtime_metadata_path = "{}",
|
||||
derive_for_all_types = "Eq, PartialEq"
|
||||
derive_for_all_types = "Eq, PartialEq",
|
||||
substitute_type(
|
||||
type = "sp_arithmetic::per_things::Perbill",
|
||||
with = "::sp_runtime::Perbill"
|
||||
)
|
||||
)]
|
||||
pub mod node_runtime {{
|
||||
#[subxt(substitute_type = "sp_arithmetic::per_things::Perbill")]
|
||||
use ::sp_runtime::Perbill;
|
||||
}}
|
||||
pub mod node_runtime {{}}
|
||||
"#,
|
||||
metadata_path
|
||||
.to_str()
|
||||
|
||||
Reference in New Issue
Block a user