Skip to content

Commit

Permalink
Update Acala support to match C++.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium committed Nov 14, 2024
1 parent 227111d commit c5f078a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/chains/tw_polkadot/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use crate::call_encoder::CallEncoder;
fn require_check_metadata(network_id: NetworkId, spec_version: u32) -> bool {
match network_id {
NetworkId::POLKADOT | NetworkId::KUSAMA if spec_version >= 1_002_005 => true,
NetworkId::ACALA if spec_version >= 2_270 => true,
_ => false,
}
}
Expand Down
1 change: 1 addition & 0 deletions rust/tw_ss58_address/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub struct NetworkId(u16);
impl NetworkId {
pub const POLKADOT: Self = Self::new_unchecked(0);
pub const KUSAMA: Self = Self::new_unchecked(2);
pub const ACALA: Self = Self::new_unchecked(10);
pub const POLYMESH: Self = Self::new_unchecked(12);
pub const GENERIC_SUBSTRATE: Self = Self::new_unchecked(42);
}
Expand Down

0 comments on commit c5f078a

Please sign in to comment.