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

Fixed warnings, typos, ordering #96

Merged
merged 1 commit into from
Jul 11, 2022
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
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions integration-tests/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,55 +35,55 @@ parameter_types! {
}

impl frame_system::Config for Test {
type AccountData = pallet_balances::AccountData<u64>;
type AccountId = u64;
type BaseCallFilter = frame_support::traits::Everything;
type BlockHashCount = ConstU64<250>;
type BlockLength = ();
type BlockNumber = u64;
type BlockWeights = ();
type BlockLength = ();
type Origin = Origin;
type Call = Call;
type DbWeight = ();
type Event = Event;
type Index = u64;
type BlockNumber = u64;
type Hash = H256;
type Hashing = BlakeTwo256;
type Header = Header;
type Index = u64;
type AccountId = u64;
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type MaxConsumers = frame_support::traits::ConstU32<16>;
type Origin = Origin;
type Header = Header;
type Event = Event;
type BlockHashCount = ConstU64<250>;
type DbWeight = ();
type Version = ();
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type AccountData = pallet_balances::AccountData<u64>;
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type Version = ();
type SS58Prefix = ();
type OnSetCode = ();
type MaxConsumers = ConstU32<16>;
}

impl pallet_balances::Config for Test {
type AccountStore = System;
type Balance = u64;
type DustRemoval = ();
type Event = Event;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
type MaxLocks = ConstU32<10>;
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const MinVestedTransfer: u64 = 256 * 2;
pub static ExistentialDeposit: u64 = 0;
}

impl pallet_vesting::Config for Test {
type BlockNumberToBalance = Identity;
type Currency = Balances;
type Event = Event;
const MAX_VESTING_SCHEDULES: u32 = 3;
type Currency = Balances;
type BlockNumberToBalance = Identity;
type MinVestedTransfer = MinVestedTransfer;
type WeightInfo = ();
const MAX_VESTING_SCHEDULES: u32 = 3;
}

/// Balance of an account.
Expand All @@ -105,14 +105,14 @@ impl pallet_assets::Config for Test {
type Currency = Balances;
type ForceOrigin = frame_system::EnsureRoot<u64>;
type AssetDeposit = AssetDeposit;
type AssetAccountDeposit = ();
type MetadataDepositBase = MetadataDepositBase;
type MetadataDepositPerByte = MetaDataDepositPerByte;
type ApprovalDeposit = ApprovalDeposit;
type StringLimit = StringLimit;
type Freezer = ();
type Extra = ();
type WeightInfo = ();
type AssetAccountDeposit = ();
}

pub struct ExtBuilder {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/vesting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ED: u64 = 256;
fn vest_and_assert_no_vesting<T>(account: u64)
where
u64: EncodeLike<<T as frame_system::Config>::AccountId>,
T: pallet_vesting::Config,
T: Config,
{
// Its ok for this to fail because the user may already have no schedules.
let _result = Vesting::vest(Some(account).into());
Expand Down
4 changes: 1 addition & 3 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = 'https://substrate.dev'
license = 'Apache-2.0'
name = 'ice-node'
repository = 'https://github.com/web3labs/ice-substrate'
version = '0.4.44'
version = '0.4.45'
publish = false

[package.metadata.docs.rs]
Expand Down Expand Up @@ -138,9 +138,7 @@ try-runtime-cli = { git = "https://github.com/paritytech/substrate", branch = "p


[build-dependencies]
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24", optional = true }
sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24", optional = true }
polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.24", optional = true }
build-script-utils = { package = "substrate-build-script-utils", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.24" }

[features]
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/frost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn authority_keys_from_seed(s: &str) -> (AuraId, GrandpaId) {
}

const AIRDROP_MERKLE_ROOT: [u8; 32] =
hex_literal::hex!("990e01e3959627d2ddd94927e1c605a422b62dc3b8c8b98d713ae6833c3ef122");
hex!("990e01e3959627d2ddd94927e1c605a422b62dc3b8c8b98d713ae6833c3ef122");

/// Initialize frost testnet configuration
pub fn testnet_config() -> Result<FrostChainSpec, String> {
Expand Down
Loading