Skip to content

Commit

Permalink
Feat: enable XCC on mainnet (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
birchmd authored Feb 22, 2023
1 parent 6dde7d4 commit 8a1fcd5
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions engine/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,27 +777,13 @@ impl<'env, I: IO + Copy, E: Env> Engine<'env, I, E> {
let env = self.env;
let ro_promise_handler = handler.read_only();

let precompiles = if cfg!(all(feature = "mainnet", not(feature = "integration-test"))) {
let mut tmp = Precompiles::new_london(PrecompileConstructorContext {
current_account_id,
random_seed,
io,
env,
promise_handler: ro_promise_handler,
});
// Cross contract calls are not enabled on mainnet yet.
tmp.all_precompiles
.remove(&aurora_engine_precompiles::xcc::cross_contract_call::ADDRESS);
tmp
} else {
Precompiles::new_london(PrecompileConstructorContext {
current_account_id,
random_seed,
io,
env,
promise_handler: ro_promise_handler,
})
};
let precompiles = Precompiles::new_london(PrecompileConstructorContext {
current_account_id,
random_seed,
io,
env,
promise_handler: ro_promise_handler,
});

Self::apply_pause_flags_to_precompiles(precompiles, pause_flags)
}
Expand Down

0 comments on commit 8a1fcd5

Please sign in to comment.