Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f87ab7

Browse files
update readme example code
1 parent e1b8804 commit 1f87ab7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,24 @@ Coming Soon: ``[eventLogs, geth, websockets, tokens]``
5151
//account
5252
account.getERC20Tokens("0x4e83362442b8d1bec281594cea3050c8eb01311c")
5353
.observeOn(AndroidSchedulers.mainThread())
54-
?.subscribeBy(
54+
.subscribeBy(
5555
onSuccess = { Log.d(TAG, "The Account Size of Transactions is: ${it.size}") },
5656
onError = { Log.d(TAG, "error receiving ERC20") })
5757
5858
//contracts
5959
contract.getContractABI("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413")
6060
.observeOn(AndroidSchedulers.mainThread())
61-
?.subscribeBy(
61+
.subscribeBy(
6262
onSuccess = { Log.d(TAG, "The ABI has returned: $it") },
6363
onError = { Log.d(TAG, "error receiving abi contract") })
6464
6565
//blocks
6666
blocks.getBlocksMined("2165403")
6767
.observeOn(AndroidSchedulers.mainThread())
68-
?.subscribeBy(
68+
.subscribeBy(
6969
onSuccess = {
7070
Log.d(TAG, "The block miner is: ${it.blockMiner} and " +
71-
"the first miner : ${it.uncles?.get(0)?.miner}")
71+
"the first miner : ${it.uncles.get(0).miner}")
7272
},
7373
onError = { Log.d(TAG, "error receiving blocks mined") })
7474
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /