Skip to content

Commit 48505c3

Browse files
authored
chore: remove passed storage migration (#95)
1 parent 94f8133 commit 48505c3

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

runtime/mainnet/src/lib.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -114,27 +114,8 @@ pub type Executive = frame_executive::Executive<
114114
frame_system::ChainContext<Runtime>,
115115
Runtime,
116116
AllPalletsWithSystem,
117-
MigratePrecompiles,
118117
>;
119118

120-
/// Init new precompiles
121-
pub struct MigratePrecompiles;
122-
impl frame_support::traits::OnRuntimeUpgrade for MigratePrecompiles {
123-
fn on_runtime_upgrade() -> Weight {
124-
let revert_bytecode = vec![0x60, 0x00, 0x60, 0x00, 0xFD]; // dummy revert bytecode
125-
let precompiles = vec![
126-
H160::from_low_u64_be(256), // registration pool
127-
H160::from_low_u64_be(257), // socket queue
128-
H160::from_low_u64_be(2051), // relay executive
129-
];
130-
131-
for precomile in precompiles {
132-
pallet_evm::Pallet::<Runtime>::create_account(precomile, revert_bytecode.clone());
133-
}
134-
Weight::from_parts(0u64, 0u64)
135-
}
136-
}
137-
138119
/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
139120
/// the specifics of the runtime. They can then be made to be agnostic over specific formats
140121
/// of data like extrinsics, allowing for them to continue syncing the network through upgrades

0 commit comments

Comments
 (0)