Skip to content

Commit f7d72b0

Browse files
clippy
1 parent 0bc2f25 commit f7d72b0

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/runtime/accountid20/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ pallet-dynamic-fee = { workspace = true }
5353
pallet-ethereum = { workspace = true }
5454
pallet-evm = { workspace = true }
5555
pallet-evm-chain-id = { workspace = true }
56-
pallet-evm-precompile-modexp = { workspace = true }
57-
pallet-evm-precompile-sha3fips = { workspace = true }
58-
pallet-evm-precompile-simple = { workspace = true }
5956
pallet-hotfix-sufficients = { workspace = true }
6057
# Frontier Template Runtime Common
6158
frontier-template-runtime-common = { workspace = true }
@@ -108,9 +105,6 @@ std = [
108105
"pallet-ethereum/std",
109106
"pallet-evm/std",
110107
"pallet-evm-chain-id/std",
111-
"pallet-evm-precompile-modexp/std",
112-
"pallet-evm-precompile-sha3fips/std",
113-
"pallet-evm-precompile-simple/std",
114108
"pallet-hotfix-sufficients/std",
115109
# Frontier Template Runtime Common
116110
"frontier-template-runtime-common/std",

template/runtime/accountid32/Cargo.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pallet-transaction-payment = { workspace = true }
4343
pallet-transaction-payment-rpc-runtime-api = { workspace = true }
4444

4545
# Frontier
46-
fp-account = { workspace = true }
4746
fp-evm = { workspace = true }
4847
fp-rpc = { workspace = true }
4948
fp-self-contained = { workspace = true }
@@ -53,9 +52,6 @@ pallet-dynamic-fee = { workspace = true }
5352
pallet-ethereum = { workspace = true }
5453
pallet-evm = { workspace = true }
5554
pallet-evm-chain-id = { workspace = true }
56-
pallet-evm-precompile-modexp = { workspace = true }
57-
pallet-evm-precompile-sha3fips = { workspace = true }
58-
pallet-evm-precompile-simple = { workspace = true }
5955
pallet-hotfix-sufficients = { workspace = true }
6056
# Frontier Template Runtime Common
6157
frontier-template-runtime-common = { workspace = true }
@@ -98,7 +94,6 @@ std = [
9894
"pallet-transaction-payment/std",
9995
"pallet-transaction-payment-rpc-runtime-api/std",
10096
# Frontier
101-
"fp-account/std",
10297
"fp-evm/std",
10398
"fp-rpc/std",
10499
"fp-self-contained/std",
@@ -108,9 +103,6 @@ std = [
108103
"pallet-ethereum/std",
109104
"pallet-evm/std",
110105
"pallet-evm-chain-id/std",
111-
"pallet-evm-precompile-modexp/std",
112-
"pallet-evm-precompile-sha3fips/std",
113-
"pallet-evm-precompile-simple/std",
114106
"pallet-hotfix-sufficients/std",
115107
# Frontier Template Runtime Common
116108
"frontier-template-runtime-common/std",

template/runtime/common/src/precompiles.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ use pallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripe
1010

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

13+
impl<R> Default for FrontierPrecompiles<R> {
14+
fn default() -> Self {
15+
Self(PhantomData)
16+
}
17+
}
18+
1319
impl<R> FrontierPrecompiles<R>
1420
where
1521
R: pallet_evm::Config,
1622
{
1723
pub fn new() -> Self {
18-
Self(Default::default())
24+
Default::default()
1925
}
2026
pub fn used_addresses() -> [H160; 7] {
2127
[

0 commit comments

Comments
 (0)