Skip to content
Prev Previous commit
Next Next commit
fix pallets contract and nomination pools
  • Loading branch information
maciejnems committed Feb 13, 2023
commit 4cf3f6d941a20979c230ef0415c54cad969dc6f9
2 changes: 2 additions & 0 deletions bin/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ pub fn new_partial(
registry: config.prometheus_registry(),
check_for_equivocation: Default::default(),
telemetry: telemetry.as_ref().map(|x| x.handle()),
compatibility_mode: Default::default(),
},
)?;

Expand Down Expand Up @@ -380,6 +381,7 @@ pub fn new_authority(
block_proposal_slot_portion: SlotProportion::new(2f32 / 3f32),
max_block_proposal_slot_portion: None,
telemetry: telemetry.as_ref().map(|x| x.handle()),
compatibility_mode: Default::default(),
},
)?;

Expand Down
9 changes: 5 additions & 4 deletions bin/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,10 @@ impl pallet_nomination_pools::Config for Runtime {
type WeightInfo = ();
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type CurrencyBalance = Balance;
type RewardCounter = FixedU128;
type BalanceToU256 = BalanceToU256;
type U256ToBalance = U256ToBalance;
type StakingInterface = pallet_staking::Pallet<Self>;
type Staking = pallet_staking::Pallet<Self>;
type PostUnbondingPoolsWindow = PostUnbondPoolsWindow;
type MaxMetadataLen = ConstU32<256>;
type MaxUnbonding = ConstU32<8>;
Expand Down Expand Up @@ -945,7 +944,8 @@ impl_runtime_apis! {
gas_limit,
storage_deposit_limit,
input_data,
CONTRACTS_DEBUG_OUTPUT
CONTRACTS_DEBUG_OUTPUT,
pallet_contracts::Determinism::Deterministic,
)
}

Expand Down Expand Up @@ -976,9 +976,10 @@ impl_runtime_apis! {
origin: AccountId,
code: Vec<u8>,
storage_deposit_limit: Option<Balance>,
determinism: pallet_contracts::Determinism,
) -> pallet_contracts_primitives::CodeUploadResult<Hash, Balance>
{
Contracts::bare_upload_code(origin, code, storage_deposit_limit)
Contracts::bare_upload_code(origin, code, storage_deposit_limit, determinism)
}

fn get_storage(
Expand Down