Skip to content

Commit

Permalink
Deny warnings for mulitplication with one.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed Jul 8, 2022
1 parent e2d9773 commit 4fdc6df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion runtimes/eden/src/pallets_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#![allow(clippy::identity_op)]

use crate::{
constants, implementations::DealWithFees, version::VERSION, Balances, Call, CompanyReserve, Event, Origin,
PalletInfo, Runtime, SignedExtra, SignedPayload, System, UncheckedExtrinsic,
Expand Down Expand Up @@ -102,7 +104,7 @@ impl pallet_balances::Config for Runtime {
}

parameter_types! {
pub const TransactionByteFee: Balance = constants::MICRO_NODL;
pub const TransactionByteFee: Balance = 1 * constants::MICRO_NODL;
pub const OperationalFeeMultiplier: u8 = 5;
pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25);
pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(1, 100_000);
Expand Down
5 changes: 4 additions & 1 deletion runtimes/eden/src/pallets_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#![allow(clippy::identity_op)]

use crate::{
constants, implementations::RelayChainBlockNumberProvider, pallets_governance::MoreThanHalfOfTechComm, Balances,
Call, Event, Origin, OriginCaller, Preimage, Runtime,
Expand Down Expand Up @@ -91,6 +93,7 @@ parameter_types! {
pub const PreimageByteDeposit: Balance = constants::deposit(0, 1);
}

#[allow(clippy::identity_op)]
impl pallet_preimage::Config for Runtime {
type WeightInfo = pallet_preimage::weights::SubstrateWeight<Runtime>;
type Event = Event;
Expand All @@ -105,7 +108,7 @@ parameter_types! {
pub const ClassDeposit: Balance = 10 * constants::NODL;
pub const InstanceDeposit: Balance = 100 * constants::MILLI_NODL;
pub const MetadataDepositBase: Balance = 10 * constants::NODL;
pub const MetadataDepositPerByte: Balance = constants::NODL;
pub const MetadataDepositPerByte: Balance = 1 * constants::NODL;
pub const KeyLimit: u32 = 32;
pub const ValueLimit: u32 = 256;
pub const StringLimit: u32 = 50;
Expand Down

0 comments on commit 4fdc6df

Please sign in to comment.