Skip to content

Commit

Permalink
patch balance dump
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 21, 2023
1 parent 6298075 commit 3a81fc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/genesis/src/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub fn compare_recovery_vec_to_genesis_tx(
#[derive(Serialize, Deserialize)]
struct JsonDump {
balance: GasCoinStoreResource,
slow: SlowWalletBalance,
slow: Option<SlowWalletBalance>,
}
/// Compare the balances in a recovery file to the balances in a genesis blob.
pub fn export_account_balances(
Expand Down Expand Up @@ -165,8 +165,7 @@ pub fn export_account_balances(

let slow = account_state_view
.get_move_resource::<SlowWalletBalance>()
.expect("should have a slow wallet struct")
.unwrap();
.expect("should have a slow wallet struct");

let balance = account_state_view
.get_move_resource::<GasCoinStoreResource>()
Expand Down

0 comments on commit 3a81fc5

Please sign in to comment.