Skip to content

Commit

Permalink
solution: publish v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
splix committed Jul 3, 2020
1 parent 16eafc5 commit 5c8667f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= PolkaJ - Polkadot Java Client
:lib-version: 0.2.0
:lib-version-dev: 0.2.0
:lib-version: 0.2.2
:lib-version-dev: 0.2.2

image:https://github.com/emeraldpay/polkaj/workflows/Tests/badge.svg["Unit Tests"]
image:https://codecov.io/gh/emeraldpay/polkaj/branch/master/graph/badge.svg["Coverage",link="https://codecov.io/gh/emeraldpay/polkaj"]
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apply plugin: 'jacoco'

allprojects {
group = 'io.emeraldpay.polkaj'
version = "0.2.1"
version = "0.2.2"

repositories {
mavenLocal()
Expand Down
2 changes: 1 addition & 1 deletion examples/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Common config for Polkaj Examples
//
ext {
polkajVersion = "0.2.1"
polkajVersion = "0.2.2"
}

repositories {
Expand Down
2 changes: 2 additions & 0 deletions examples/rpc/src/main/java/ShowState.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static void main(String[] args) throws Exception {
);

Hash256 hash = hashFuture.get();
Hash256 blockHash = client.execute(PolkadotApi.commands().getBlockHash()).get();

Future<BlockResponseJson> blockFuture = client.execute(
// Another way to prepare a call, instead of manually constructing RpcCall instances
Expand All @@ -50,6 +51,7 @@ public static void main(String[] args) throws Exception {
System.out.println("Peers count: " + health.getPeers());
System.out.println("Is syncing: " + health.getSyncing());
System.out.println("Current head: " + hash);
System.out.println("Current block hash: " + blockHash);
System.out.println("Current height: " + block.getBlock().getHeader().getNumber());
System.out.println("State hash: " + block.getBlock().getHeader().getStateRoot());
client.close();
Expand Down

0 comments on commit 5c8667f

Please sign in to comment.