diff --git a/lib/stable-asset/Cargo.toml b/lib/stable-asset/Cargo.toml index 81b3fdc..410edf3 100644 --- a/lib/stable-asset/Cargo.toml +++ b/lib/stable-asset/Cargo.toml @@ -18,12 +18,12 @@ scale-info = { version = "2.1", default-features = false, features = ["derive"] [dependencies.frame-support] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [dependencies.frame-system] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [dev-dependencies] serde = { version = "1.0.101" } @@ -31,27 +31,27 @@ serde = { version = "1.0.101" } [dev-dependencies.sp-core] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [dev-dependencies.sp-io] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [dependencies.sp-std] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [dependencies.sp-runtime] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [dev-dependencies.pallet-balances] default-features = false git = "https://github.com/paritytech/substrate" -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.23" [features] default = ["std"] diff --git a/lib/stable-asset/src/lib.rs b/lib/stable-asset/src/lib.rs index b4c2d57..cce2f2f 100644 --- a/lib/stable-asset/src/lib.rs +++ b/lib/stable-asset/src/lib.rs @@ -1387,7 +1387,7 @@ impl StableAsset for Pallet { ensure!(assets.len() == precisions.len(), Error::::ArgumentsMismatch); PoolCount::::try_mutate(|pool_count| -> DispatchResult { let pool_id = *pool_count; - let swap_id: T::AccountId = T::PalletId::get().into_sub_account(pool_id); + let swap_id: T::AccountId = T::PalletId::get().into_sub_account_truncating(pool_id); Pools::::try_mutate_exists(pool_id, |maybe_pool_info| -> DispatchResult { ensure!(maybe_pool_info.is_none(), Error::::InconsistentStorage); @@ -1422,7 +1422,7 @@ impl StableAsset for Pallet { pool_id, swap_id, a: initial_a, - pallet_id: T::PalletId::get().into_account(), + pallet_id: T::PalletId::get().into_account_truncating(), }); Ok(()) })