Skip to content

Commit

Permalink
[fix]: Fixing errors introduced by merging in main
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer authored and tzemanovic committed Jul 12, 2023
1 parent 7fd0f6e commit 5de784e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/src/lib/node/ledger/shell/init_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ where
fn initialize_established_accounts(
&mut self,
faucet_pow_difficulty: Option<testnet_pow::Difficulty>,
faucet_withdrawal_limit: Option<token::Amount>,
faucet_withdrawal_limit: Option<namada::types::uint::Uint>,
accounts: Vec<genesis::EstablishedAccount>,
implicit_vp_code_path: &str,
) -> Result<()> {
Expand Down Expand Up @@ -311,8 +311,11 @@ where
if vp_code_path == "vp_testnet_faucet.wasm" {
let difficulty = faucet_pow_difficulty.unwrap_or_default();
// withdrawal limit defaults to 1000 NAM when not set
let withdrawal_limit = faucet_withdrawal_limit
.unwrap_or_else(|| token::Amount::native_whole(1_000));
let withdrawal_limit =
faucet_withdrawal_limit.unwrap_or_else(|| {
token::Amount::native_whole(1_000).into()
});

testnet_pow::init_faucet_storage(
&mut self.wl_storage,
&address,
Expand Down

0 comments on commit 5de784e

Please sign in to comment.