Skip to content

Commit

Permalink
1. Fixed issue with contract deployment transactions being rejected d…
Browse files Browse the repository at this point in the history
…ue to empty to address field.

2. Added fast param to geth start script
3. Bumped version.
  • Loading branch information
conor10 committed Feb 27, 2017
1 parent 7f94fcb commit b2198a3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Java 8:
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
</dependency>
Android:
Expand All @@ -105,7 +105,7 @@ Java 8:

.. code-block:: groovy
compile ('org.web3j:core:2.0.1')
compile ('org.web3j:core:2.0.2')
Android:

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Java 8:
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
</dependency>
Android:
Expand All @@ -33,7 +33,7 @@ Java 8:

.. code-block:: groovy
compile ('org.web3j:core:2.0.1')
compile ('org.web3j:core:2.0.2')
Android:

Expand All @@ -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 <https://github.com/ethcore/parity>`_:

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/web3j/tx/Contract.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ protected static <T extends Contract> 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);

Expand Down

0 comments on commit b2198a3

Please sign in to comment.