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:
Anatoly Yakovenko
2018-08-10 21:13:34 -07:00
committed by Rob Walker
parent fc0d7f5982
commit a284030ecc
10 changed files with 323 additions and 192 deletions

View File

@@ -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 {