Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardoaraujor committed May 25, 2023
1 parent 0bc2f25 commit f7d72b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

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

6 changes: 0 additions & 6 deletions template/runtime/accountid20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ pallet-dynamic-fee = { workspace = true }
pallet-ethereum = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-chain-id = { workspace = true }
pallet-evm-precompile-modexp = { workspace = true }
pallet-evm-precompile-sha3fips = { workspace = true }
pallet-evm-precompile-simple = { workspace = true }
pallet-hotfix-sufficients = { workspace = true }
# Frontier Template Runtime Common
frontier-template-runtime-common = { workspace = true }
Expand Down Expand Up @@ -108,9 +105,6 @@ std = [
"pallet-ethereum/std",
"pallet-evm/std",
"pallet-evm-chain-id/std",
"pallet-evm-precompile-modexp/std",
"pallet-evm-precompile-sha3fips/std",
"pallet-evm-precompile-simple/std",
"pallet-hotfix-sufficients/std",
# Frontier Template Runtime Common
"frontier-template-runtime-common/std",
Expand Down
8 changes: 0 additions & 8 deletions template/runtime/accountid32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ pallet-transaction-payment = { workspace = true }
pallet-transaction-payment-rpc-runtime-api = { workspace = true }

# Frontier
fp-account = { workspace = true }
fp-evm = { workspace = true }
fp-rpc = { workspace = true }
fp-self-contained = { workspace = true }
Expand All @@ -53,9 +52,6 @@ pallet-dynamic-fee = { workspace = true }
pallet-ethereum = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-chain-id = { workspace = true }
pallet-evm-precompile-modexp = { workspace = true }
pallet-evm-precompile-sha3fips = { workspace = true }
pallet-evm-precompile-simple = { workspace = true }
pallet-hotfix-sufficients = { workspace = true }
# Frontier Template Runtime Common
frontier-template-runtime-common = { workspace = true }
Expand Down Expand Up @@ -98,7 +94,6 @@ std = [
"pallet-transaction-payment/std",
"pallet-transaction-payment-rpc-runtime-api/std",
# Frontier
"fp-account/std",
"fp-evm/std",
"fp-rpc/std",
"fp-self-contained/std",
Expand All @@ -108,9 +103,6 @@ std = [
"pallet-ethereum/std",
"pallet-evm/std",
"pallet-evm-chain-id/std",
"pallet-evm-precompile-modexp/std",
"pallet-evm-precompile-sha3fips/std",
"pallet-evm-precompile-simple/std",
"pallet-hotfix-sufficients/std",
# Frontier Template Runtime Common
"frontier-template-runtime-common/std",
Expand Down
8 changes: 7 additions & 1 deletion template/runtime/common/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ use pallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripe

pub struct FrontierPrecompiles<R>(PhantomData<R>);

impl<R> Default for FrontierPrecompiles<R> {
fn default() -> Self {
Self(PhantomData)
}
}

impl<R> FrontierPrecompiles<R>
where
R: pallet_evm::Config,
{
pub fn new() -> Self {
Self(Default::default())
Default::default()
}
pub fn used_addresses() -> [H160; 7] {
[
Expand Down

0 comments on commit f7d72b0

Please sign in to comment.