Skip to content

Commit

Permalink
Example accounts.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed Jan 5, 2018
1 parent 50a6e4d commit 06ba7df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
echo 'Error: ' . $err->getMessage();
return;
}
foreach ($accounts->result as $account) {
foreach ($accounts as $account) {
echo 'Account: ' . $account . PHP_EOL;

$eth->getBalance($account, function ($err, $balance) {
if ($err !== null) {
echo 'Error: ' . $err->getMessage();
return;
}
echo 'Balance: ' . $balance->result . PHP_EOL;
echo 'Balance: ' . $balance . PHP_EOL;
});
}
});

0 comments on commit 06ba7df

Please sign in to comment.