Account type with state
comments fixups! fixups! fixups for a real Result<> from get_balance() on 2nd thought, be more rigorous Merge branch 'rob-solana-accounts_with_state' into accounts_with_state update review comments comments get rid of option
This commit is contained in:
committed by
Rob Walker
parent
fc0d7f5982
commit
a284030ecc
@@ -91,7 +91,7 @@ fn main() -> () {
|
||||
};
|
||||
|
||||
let mut client = mk_client(&repl_clone);
|
||||
let previous_balance = client.poll_get_balance(&leader_pubkey).unwrap();
|
||||
let previous_balance = client.poll_get_balance(&leader_pubkey).unwrap_or(0);
|
||||
eprintln!("balance is {}", previous_balance);
|
||||
|
||||
if previous_balance == 0 {
|
||||
|
Reference in New Issue
Block a user