Skip to content

Commit

Permalink
fix(fork-tool): Use dec_format to serialize u128 (#10169)
Browse files Browse the repository at this point in the history
For consistency with genesis.json.
cc: @vlad-kopcil
  • Loading branch information
nikurt authored Nov 14, 2023
1 parent 628fd96 commit b80f5b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/fork-network/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use near_primitives::hash::CryptoHash;
use near_primitives::receipt::Receipt;
use near_primitives::runtime::config::RuntimeConfig;
use near_primitives::runtime::config_store::RuntimeConfigStore;
use near_primitives::serialize::dec_format;
use near_primitives::shard_layout::ShardUId;
use near_primitives::state::FlatStateValue;
use near_primitives::state_record::StateRecord;
Expand Down Expand Up @@ -115,6 +116,7 @@ struct ResetCmd;
struct Validator {
account_id: AccountId,
public_key: PublicKey,
#[serde(with = "dec_format")]
amount: Option<Balance>,
}

Expand Down

0 comments on commit b80f5b5

Please sign in to comment.