Skip to content

Commit d2800fd

Browse files
authored
Update README.md
1 parent 49ea554 commit d2800fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ string name;
337337
purpose.QueryName().OnSuccess(tokenName => name = tokenName);
338338

339339
// Query the balance of the address "0x0101010101010101010101010101010101010101" of the contract and print it out.
340-
purpose.QueryBalanceOf("0x0101010101010101010101010101010101010101").OnSuccess(Debug.Log);
340+
purpose.QueryBalanceOf("0x0101010101010101010101010101010101010101").OnSuccess(balance => Debug.Log(balance));
341341
```
342342

343343
The reason for the differences between libraries is due to the fact that the return types are different. The Unity return is of type ```EthCallPromise<T>``` while .NET Standard returns a ```Task<T>```.

0 commit comments

Comments
 (0)