Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Jul 24, 2023
1 parent afb033c commit c393846
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/collator/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ where
)
.into_rpc(),
)?;
// TODO: remove this? This would mean we have two distinct tx pool implementations! What is the difference?

io.merge(tx_pool.into_rpc())?;

Ok(io)
Expand Down
7 changes: 4 additions & 3 deletions chain-extensions/pallet-assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ impl<T, W> Default for AssetsExtension<T, W> {
impl<T, W> ChainExtension<T> for AssetsExtension<T, W>
where
T: pallet_assets::Config + pallet_contracts::Config,
<T as pallet_assets::Config>::AssetId: Copy,
<<T as SysConfig>::Lookup as StaticLookup>::Source: From<<T as SysConfig>::AccountId>,
<T as SysConfig>::AccountId: From<[u8; 32]>,
W: weights::WeightInfo,
Expand Down Expand Up @@ -364,7 +365,7 @@ where
let base_weight = <W as weights::WeightInfo>::metadata_name();
env.charge_weight(base_weight)?;

let name = pallet_assets::Pallet::<T>::name(id.clone());
let name = pallet_assets::Pallet::<T>::name(id);
env.write(&name.encode(), false, None)?;
}
AssetsFunc::MetadataSymbol => {
Expand All @@ -373,7 +374,7 @@ where
let base_weight = <W as weights::WeightInfo>::metadata_symbol();
env.charge_weight(base_weight)?;

let symbol = pallet_assets::Pallet::<T>::symbol(id.clone());
let symbol = pallet_assets::Pallet::<T>::symbol(id);
env.write(&symbol.encode(), false, None)?;
}
AssetsFunc::MetadataDecimals => {
Expand All @@ -382,7 +383,7 @@ where
let base_weight = <W as weights::WeightInfo>::metadata_decimals();
env.charge_weight(base_weight)?;

let decimals = pallet_assets::Pallet::<T>::decimals(id.clone());
let decimals = pallet_assets::Pallet::<T>::decimals(id);
env.write(&decimals.encode(), false, None)?;
}
AssetsFunc::TransferOwnership => {
Expand Down
2 changes: 1 addition & 1 deletion chain-extensions/xvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ where
target: "xvm-extension::xvm_call",
"root origin not supported"
);

// TODO: expand XvmErrors with BadOrigin
return Ok(RetVal::Converging(XvmExecutionResult::UnknownError as u32));
}
};
Expand Down
2 changes: 1 addition & 1 deletion runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ parameter_types! {
pub const DepositPerItem: Balance = deposit(1, 0);
pub const DepositPerByte: Balance = deposit(0, 1);
// Fallback value if storage deposit limit not set by the user
pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024);
pub const DefaultDepositLimit: Balance = deposit(16, 16 * 1024);
pub Schedule: pallet_contracts::Schedule<Runtime> = Default::default();
}

Expand Down

0 comments on commit c393846

Please sign in to comment.