diff --git a/.github/workflows/check_build_test.yml b/.github/workflows/check_build_test.yml index 526ef5e87d..e6f9ae6898 100644 --- a/.github/workflows/check_build_test.yml +++ b/.github/workflows/check_build_test.yml @@ -71,6 +71,10 @@ jobs: run: ./scripts/pr.sh -t - name: Build and test example projects run: ./scripts/pr.sh -e + - name: Generate Genesis File for Mainnet + run: cargo run -p rooch-genesis -- -n main + - name: Generate Genesis File for Testnet + run: cargo run -p rooch-genesis -- -n test # web & sdk & dashboard - name: Use Node.js diff --git a/crates/rooch-genesis/src/lib.rs b/crates/rooch-genesis/src/lib.rs index 18efd78397..c6ac289568 100644 --- a/crates/rooch-genesis/src/lib.rs +++ b/crates/rooch-genesis/src/lib.rs @@ -300,8 +300,10 @@ impl RoochGenesis { || network.chain_id == BuiltinChainID::Local.chain_id() { FrameworksGasParameters::latest() - } else { + } else if network.chain_id == BuiltinChainID::Main.chain_id() { FrameworksGasParameters::initial() + } else { + FrameworksGasParameters::v1() } }; let gas_config = gas_parameter.to_gas_schedule_config(network.chain_id);