Skip to content

Commit ccfd0c0

Browse files
committed
Fix all compilation errors
1 parent 35c07ef commit ccfd0c0

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

Cargo.lock

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pallets/funding/src/benchmarking.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
2121
use super::*;
2222
use crate::{instantiator::*, traits::SetPrices};
23-
use polimec_common::assets::AcceptedFundingAsset;
24-
23+
use alloc::{vec, vec::Vec};
2524
use frame_benchmarking::v2::*;
2625
use frame_support::{
2726
assert_ok,
@@ -35,7 +34,10 @@ use frame_support::{
3534
use itertools::Itertools;
3635
use parity_scale_codec::{Decode, Encode};
3736
use polimec_common::{
38-
assets::AcceptedFundingAsset::{DOT, ETH, USDC, USDT},
37+
assets::{
38+
AcceptedFundingAsset,
39+
AcceptedFundingAsset::{DOT, ETH, USDC, USDT},
40+
},
3941
credentials::InvestorType,
4042
ProvideAssetPrice, USD_DECIMALS, USD_UNIT,
4143
};

pallets/funding/src/instantiator/calculations.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use super::*;
22
use crate::{MultiplierOf, ParticipationMode};
3+
use alloc::{vec, vec::Vec};
34
use itertools::{izip, GroupBy};
45
#[allow(clippy::wildcard_imports)]
56
use polimec_common::assets::AcceptedFundingAsset;

pallets/funding/src/instantiator/chain_interactions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#[allow(clippy::wildcard_imports)]
44
use super::*;
5+
use alloc::{vec, vec::Vec};
56
use polimec_common::assets::AcceptedFundingAsset;
67

78
// general chain interactions

runtimes/polimec/src/custom_migrations/linear_release.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub type Values = BoundedVec<VestingInfo<Balance, BlockNumber>, MaxVestingSchedu
1515
pub struct LinearReleaseVestingMigration;
1616
impl OnRuntimeUpgrade for LinearReleaseVestingMigration {
1717
#[cfg(feature = "try-runtime")]
18-
fn pre_upgrade() -> Result<sp_std::vec::Vec<u8>, sp_runtime::TryRuntimeError> {
18+
fn pre_upgrade() -> Result<alloc::vec::Vec<u8>, sp_runtime::TryRuntimeError> {
1919
use crate::LinearRelease;
2020

2121
let funding_on_chain_version = LinearRelease::on_chain_storage_version();
@@ -94,9 +94,7 @@ impl OnRuntimeUpgrade for LinearReleaseVestingMigration {
9494
}
9595

9696
#[cfg(feature = "try-runtime")]
97-
fn post_upgrade(
98-
versioned_post_upgrade_data_bytes: sp_std::vec::Vec<u8>,
99-
) -> Result<(), sp_runtime::TryRuntimeError> {
97+
fn post_upgrade(versioned_post_upgrade_data_bytes: alloc::vec::Vec<u8>) -> Result<(), sp_runtime::TryRuntimeError> {
10098
let storage = pallet_linear_release::Vesting::<Runtime>::iter().collect_vec();
10199
ensure!(storage.len() == 15, "LinearReleaseVestingMigration: Invalid storage length in post_upgrade");
102100

0 commit comments

Comments
 (0)