Skip to content

Commit

Permalink
1. Bumped version.
Browse files Browse the repository at this point in the history
2. Added toBigIntNoPrefix utility function.
  • Loading branch information
conor10 committed Nov 4, 2017
1 parent 889ce0f commit 13cb57d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ allprojects {
targetCompatibility = 1.8

group 'org.web3j'
version '3.0.1'
version '3.0.2'

apply plugin: 'java'
apply plugin: 'jacoco'
Expand Down
2 changes: 1 addition & 1 deletion codegen/src/test/resources/solidity/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for target in ${targets}; do
fileName=$(basename $target)

cd $dirName
echo "Compiling Solidity files"
echo "Compiling Solidity files in ${dirName}:"
solc --bin --abi --optimize --overwrite ${fileName}.sol -o build/
echo "Complete"

Expand Down
6 changes: 5 additions & 1 deletion utils/src/main/java/org/web3j/utils/Numeric.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ public static BigInteger toBigInt(byte[] value) {

public static BigInteger toBigInt(String hexValue) {
String cleanValue = cleanHexPrefix(hexValue);
return new BigInteger(cleanValue, 16);
return toBigIntNoPrefix(cleanValue);
}

public static BigInteger toBigIntNoPrefix(String hexValue) {
return new BigInteger(hexValue, 16);
}

public static String toHexStringWithPrefix(BigInteger value) {
Expand Down

0 comments on commit 13cb57d

Please sign in to comment.