From 5c8667f60385a0b422714631e1e6181fd668381c Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Fri, 3 Jul 2020 12:46:35 -0400 Subject: [PATCH] solution: publish v0.2.2 --- README.adoc | 4 ++-- build.gradle | 2 +- examples/common.gradle | 2 +- examples/rpc/src/main/java/ShowState.java | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.adoc b/README.adoc index 74f1ec4..7006de9 100644 --- a/README.adoc +++ b/README.adoc @@ -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"] diff --git a/build.gradle b/build.gradle index a46dc66..7b7801c 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'jacoco' allprojects { group = 'io.emeraldpay.polkaj' - version = "0.2.1" + version = "0.2.2" repositories { mavenLocal() diff --git a/examples/common.gradle b/examples/common.gradle index 29a58a3..aa8c05a 100644 --- a/examples/common.gradle +++ b/examples/common.gradle @@ -2,7 +2,7 @@ // Common config for Polkaj Examples // ext { - polkajVersion = "0.2.1" + polkajVersion = "0.2.2" } repositories { diff --git a/examples/rpc/src/main/java/ShowState.java b/examples/rpc/src/main/java/ShowState.java index dbd4798..8368df2 100644 --- a/examples/rpc/src/main/java/ShowState.java +++ b/examples/rpc/src/main/java/ShowState.java @@ -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 blockFuture = client.execute( // Another way to prepare a call, instead of manually constructing RpcCall instances @@ -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();