Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
steelgeek091 committed Dec 18, 2024
1 parent 870c937 commit efcfda0
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions crates/rooch-genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,14 @@ impl RoochGenesis {
.clone()
.into_moveos_transaction(ObjectMeta::genesis_root());

let gas_parameter = {
if network.chain_id == BuiltinChainID::Dev.chain_id()
|| network.chain_id == BuiltinChainID::Local.chain_id()
{
FrameworksGasParameters::latest()
} else if network.chain_id == BuiltinChainID::Main.chain_id() {
FrameworksGasParameters::initial()
} else {
FrameworksGasParameters::v1()
}
let gas_parameter = if network.chain_id == BuiltinChainID::Main.chain_id() {
FrameworksGasParameters::initial()
} else if network.chain_id == BuiltinChainID::Test.chain_id() {
FrameworksGasParameters::v1()
} else {
FrameworksGasParameters::latest()
};

let gas_config = gas_parameter.to_gas_schedule_config(network.chain_id);
genesis_moveos_tx.ctx.add(genesis_ctx.clone())?;
genesis_moveos_tx.ctx.add(moveos_genesis_ctx.clone())?;
Expand Down

0 comments on commit efcfda0

Please sign in to comment.