Skip to content

Commit

Permalink
remove redundant genesis total supply initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Apr 22, 2024
1 parent 3bc66b2 commit c486d6f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions crates/apps/src/lib/node/ledger/shell/init_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ where
continue;
};

let mut total_token_balance = token::Amount::zero();
for (owner, balance) in balances {
if let genesis::GenesisAddress::PublicKey(pk) = owner {
namada::account::init_account_storage(
Expand All @@ -535,15 +534,7 @@ where
balance.amount(),
)
.expect("Couldn't credit initial balance");
total_token_balance += balance.amount();
}
// Write the total amount of tokens for the ratio
self.state
.write(
&token::storage_key::minted_balance_key(token_address),
total_token_balance,
)
.unwrap();
}
self.proceed_with(())
}
Expand Down

0 comments on commit c486d6f

Please sign in to comment.