Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leo/post merge cleanup #276

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions integration-tests/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ pub mod polimec {
let genesis_config = polimec_runtime::RuntimeGenesisConfig {
system: Default::default(),
balances: polimec_runtime::BalancesConfig { balances: funded_accounts },
contribution_tokens: Default::default(),
funding: Default::default(),
foreign_assets: polimec_runtime::ForeignAssetsConfig {
assets: vec![
(dot_asset_id, alice_account.clone(), true, 0_0_010_000_000u128),
Expand Down
2 changes: 0 additions & 2 deletions pallets/funding/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1738,8 +1738,6 @@ impl<T: Config> Pallet<T> {
#[transactional]
pub fn do_start_migration_readiness_check(caller: &AccountIdOf<T>, project_id: ProjectId) -> DispatchResult {
// * Get variables *
let project_metadata = ProjectsMetadata::<T>::get(project_id)
.ok_or(Error::<T>::ProjectError(ProjectErrorReason::ProjectMetadataNotFound))?;
let mut project_details = ProjectsDetails::<T>::get(project_id)
.ok_or(Error::<T>::ProjectError(ProjectErrorReason::ProjectDetailsNotFound))?;
let parachain_id: u32 = project_details.parachain_id.ok_or(Error::<T>::ImpossibleState)?.into();
Expand Down
3 changes: 0 additions & 3 deletions polimec-common/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ use jwt_compact::{alg::Ed25519, AlgorithmExt, Header};
use parity_scale_codec::alloc::string::ToString;
use polimec_common::credentials::{Did, InvestorType, SampleClaims, UntrustedToken};

// This is actually used while parsing the DID and the CID.
#[allow(unused_imports)]
use parity_scale_codec::alloc::string::ToString;
/// Fetches a JWT from a dummy Polimec JWT producer that will return a JWT with the specified investor type
#[cfg(feature = "std")]
pub fn get_test_jwt<AccountId: core::fmt::Display>(
Expand Down
2 changes: 1 addition & 1 deletion runtimes/polimec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ parameter_types! {
32, 118, 30, 171, 58, 212, 197, 27, 146, 122, 255, 243, 34, 245, 90, 244, 221, 37, 253,
195, 18, 202, 111, 55, 39, 48, 123, 17, 101, 78, 215, 94,
];
pub MinUsdPerEvaluation: Balance = 100 * US_DOLLAR;
pub MinUsdPerEvaluation: Balance = 100 * USD_UNIT;

}
pub struct ConvertSelf;
Expand Down
2 changes: 1 addition & 1 deletion runtimes/politest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("politest"),
impl_name: create_runtime_str!("politest"),
authoring_version: 1,
spec_version: 0_007_001,
spec_version: 0_007_003,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down