From 06ba7df7ac2898a43ed4100aea665721f309d6bb Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Fri, 5 Jan 2018 18:19:23 +0800 Subject: [PATCH] Example accounts.php. --- examples/accounts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/accounts.php b/examples/accounts.php index 6f3dc31..2168dce 100644 --- a/examples/accounts.php +++ b/examples/accounts.php @@ -10,7 +10,7 @@ $eth->accounts(function ($err, $accounts) use ($eth) { 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) { @@ -18,7 +18,7 @@ $eth->accounts(function ($err, $accounts) use ($eth) { echo 'Error: ' . $err->getMessage(); return; } - echo 'Balance: ' . $balance->result . PHP_EOL; + echo 'Balance: ' . $balance . PHP_EOL; }); } }); \ No newline at end of file