diff --git a/README.rst b/README.rst index acad2ffef..60865806d 100644 --- a/README.rst +++ b/README.rst @@ -85,7 +85,7 @@ Java 8: org.web3j core - 2.0.1 + 2.0.2 Android: @@ -105,7 +105,7 @@ Java 8: .. code-block:: groovy - compile ('org.web3j:core:2.0.1') + compile ('org.web3j:core:2.0.2') Android: diff --git a/build.gradle b/build.gradle index 5024a8806..8d06d0ca6 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'application' group 'org.web3j' -version '2.0.1' +version '2.0.2' sourceCompatibility = 1.8 diff --git a/docs/source/conf.py b/docs/source/conf.py index 1f10a4258..daaa51c64 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -56,7 +56,7 @@ # The short X.Y version. version = u'2.0' # The full version, including alpha/beta/rc tags. -release = u'2.0.1' +release = u'2.0.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/getting_started.rst b/docs/source/getting_started.rst index 463466c99..063455223 100644 --- a/docs/source/getting_started.rst +++ b/docs/source/getting_started.rst @@ -13,7 +13,7 @@ Java 8: org.web3j core - 2.0.1 + 2.0.2 Android: @@ -33,7 +33,7 @@ Java 8: .. code-block:: groovy - compile ('org.web3j:core:2.0.1') + compile ('org.web3j:core:2.0.2') Android: @@ -50,7 +50,7 @@ Start up an Ethereum client if you don't already have one running, such as .. code-block:: bash - $ geth --rpcapi personal,db,eth,net,web3 --rpc --testnet + $ geth --fast --cache=512 --rpcapi personal,db,eth,net,web3 --rpc --testnet Or `Parity `_: diff --git a/src/main/java/org/web3j/tx/Contract.java b/src/main/java/org/web3j/tx/Contract.java index a1f0cc041..42a65db11 100644 --- a/src/main/java/org/web3j/tx/Contract.java +++ b/src/main/java/org/web3j/tx/Contract.java @@ -211,7 +211,8 @@ protected static T deploy( BigInteger.class, BigInteger.class); constructor.setAccessible(true); - T contract = constructor.newInstance("", web3j, transactionManager, gasPrice, gasLimit); + // we want to use null here to ensure that "to" parameter on message is not populated + T contract = constructor.newInstance(null, web3j, transactionManager, gasPrice, gasLimit); TransactionReceipt transactionReceipt = contract.executeTransaction(binary + encodedConstructor, value);