Skip to content

Commit

Permalink
fix: Rearrange pallets in runtime construction macro (#60)
Browse files Browse the repository at this point in the history
* fix: Rearrange pallets in runtime construction macro

* chore: Remove unused imports

* style: Reformat
  • Loading branch information
conr2d authored Dec 1, 2023
1 parent a553427 commit ff2df54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
1 change: 0 additions & 1 deletion node/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use crate::client::{FullBackend, FullClient};
pub use fc_consensus::FrontierBlockImport;
pub use fc_db::kv::frontier_database_dir;
use fc_rpc::{EthTask, OverrideHandle};
pub use fc_rpc_core::types::{FeeHistoryCache, FeeHistoryCacheLimit, FilterPool};
use futures::{future, prelude::*};
Expand Down
5 changes: 1 addition & 4 deletions node/src/rpc/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pub use fc_rpc::{
EthBlockDataCacheTask, EthConfig, OverrideHandle, RuntimeApiStorageOverride, SchemaV1Override,
SchemaV2Override, SchemaV3Override, StorageOverride,
};
pub use fc_rpc::{EthBlockDataCacheTask, EthConfig, OverrideHandle};
pub use fc_rpc_core::types::{FeeHistoryCache, FeeHistoryCacheLimit, FilterPool};
pub use fc_storage::overrides_handle;
use fp_rpc::{ConvertTransaction, ConvertTransactionRuntimeApi, EthereumRuntimeRPCApi};
Expand Down
18 changes: 9 additions & 9 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,20 +653,20 @@ impl pallet_cosmos::Config for Runtime {
// TODO: rearrange pallets
construct_runtime!(
pub struct Runtime {
Alias: pallet_alias,
System: frame_system,
Timestamp: pallet_timestamp,
Aura: pallet_aura,
Grandpa: pallet_grandpa,
Balances: pallet_balances,
BaseFee: pallet_base_fee,
Cosmos: pallet_cosmos,
DynamicFee: pallet_dynamic_fee,
TransactionPayment: pallet_transaction_payment,
Sudo: pallet_sudo,
Alias: pallet_alias,
Ethereum: pallet_ethereum,
EVM: pallet_evm,
EVMChainId: pallet_evm_chain_id,
Grandpa: pallet_grandpa,
Sudo: pallet_sudo,
System: frame_system,
Timestamp: pallet_timestamp,
TransactionPayment: pallet_transaction_payment,
Cosmos: pallet_cosmos,
DynamicFee: pallet_dynamic_fee,
BaseFee: pallet_base_fee,
}
);

Expand Down

0 comments on commit ff2df54

Please sign in to comment.