copypasted -> copied (#1168)

This commit is contained in:
Svyatoslav Nikolsky
2021-09-27 15:56:19 +03:00
committed by Bastian Köcher
parent 772b52e479
commit c0df990b90
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ impl pallet_balances::Config for Runtime {
parameter_types! { parameter_types! {
pub const TransactionBaseFee: Balance = 0; pub const TransactionBaseFee: Balance = 0;
pub const TransactionByteFee: Balance = 1; pub const TransactionByteFee: Balance = 1;
// values for following parameters are copypasted from polkadot repo, but it is fine // values for following parameters are copied from polkadot repo, but it is fine
// not to sync them - we're not going to make Rialto a full copy of one of Polkadot-like chains // not to sync them - we're not going to make Rialto a full copy of one of Polkadot-like chains
pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25); pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25);
pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(3, 100_000); pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(3, 100_000);
@@ -16,7 +16,7 @@
//! The Rialto parachain runtime. This can be compiled with `#[no_std]`, ready for Wasm. //! The Rialto parachain runtime. This can be compiled with `#[no_std]`, ready for Wasm.
//! //!
//! Originally a copypaste of runtime from https://github.com/substrate-developer-hub/substrate-parachain-template. //! Originally a copy of runtime from https://github.com/substrate-developer-hub/substrate-parachain-template.
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256. // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
+1 -1
View File
@@ -423,7 +423,7 @@ impl pallet_balances::Config for Runtime {
parameter_types! { parameter_types! {
pub const TransactionBaseFee: Balance = 0; pub const TransactionBaseFee: Balance = 0;
pub const TransactionByteFee: Balance = 1; pub const TransactionByteFee: Balance = 1;
// values for following parameters are copypasted from polkadot repo, but it is fine // values for following parameters are copied from polkadot repo, but it is fine
// not to sync them - we're not going to make Rialto a full copy of one of Polkadot-like chains // not to sync them - we're not going to make Rialto a full copy of one of Polkadot-like chains
pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25); pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25);
pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(3, 100_000); pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(3, 100_000);
+3 -3
View File
@@ -192,7 +192,7 @@ impl<BlockNumber: Copy + Into<u64>, BlockHash: Copy> TransactionEra<BlockNumber,
} }
} }
/// This is a copypaste of the /// This is a copy of the
/// `frame_support::storage::generator::StorageMap::storage_map_final_key` for `Blake2_128Concat` /// `frame_support::storage::generator::StorageMap::storage_map_final_key` for `Blake2_128Concat`
/// maps. /// maps.
/// ///
@@ -210,7 +210,7 @@ pub fn storage_map_final_key_blake2_128concat(
) )
} }
/// This is a copypaste of the /// This is a copy of the
/// `frame_support::storage::generator::StorageMap::storage_map_final_key` for `Identity` maps. /// `frame_support::storage::generator::StorageMap::storage_map_final_key` for `Identity` maps.
/// ///
/// We're using it because to call `storage_map_final_key` directly, we need access to the runtime /// We're using it because to call `storage_map_final_key` directly, we need access to the runtime
@@ -237,7 +237,7 @@ pub fn storage_map_final_key_identity(
/// This is how a storage key of storage parameter (`parameter_types! { storage Param: bool = false; /// This is how a storage key of storage parameter (`parameter_types! { storage Param: bool = false;
/// }`) is computed. /// }`) is computed.
/// ///
/// Copypaste from `frame_support::parameter_types` macro /// Copied from `frame_support::parameter_types` macro
pub fn storage_parameter_key(parameter_name: &str) -> StorageKey { pub fn storage_parameter_key(parameter_name: &str) -> StorageKey {
let mut buffer = Vec::with_capacity(1 + parameter_name.len() + 1 + 1); let mut buffer = Vec::with_capacity(1 + parameter_name.len() + 1 + 1);
buffer.push(b':'); buffer.push(b':');