Skip to content

Commit

Permalink
Merge pull request #218 from nervosnetwork/rc/v0.24.5
Browse files Browse the repository at this point in the history
[ᚬmaster] Rc/v0.24.5
  • Loading branch information
quake authored Nov 7, 2019
2 parents b544574 + d70ba4e commit b10cdab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [v0.24.5](https://github.com/nervosnetwork/ckb-sdk-java/compare/v0.24.2...v0.24.5) (2019-11-08)

### BugFix

* Update address parse args length exception([dbf4fe5](https://github.com/nervosnetwork/ckb-sdk-java/commit/f21e62f69a92c9059ec990743cd5fcf509f4cf5b))

# [v0.24.2](https://github.com/nervosnetwork/ckb-sdk-java/compare/v0.24.1...v0.24.2) (2019-11-07)

### Feature
Expand Down Expand Up @@ -319,4 +325,3 @@ Sending transaction with single sig address will be changed because of new witne

* add script model and calculate type hash ([c3ddb81](https://github.com/nervosnetwork/ckb-sdk-java/commit/c3ddb81))


4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ allprojects {
targetCompatibility = 1.8

group 'org.nervos.ckb'
version '0.24.2'
version '0.24.5'

apply plugin: 'java'

Expand Down Expand Up @@ -113,7 +113,7 @@ configure(subprojects.findAll { it.name != 'tests' }) {
publications {
mavenJava(MavenPublication) {
groupId 'org.nervos.ckb'
version '0.24.2'
version '0.24.5'
from components.java
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static AddressParseResult parse(String address) throws AddressFormatExcep
if (TYPE_SHORT.equals(type)) {
String codeHashIndex = payload.substring(2, 4);
String args = Numeric.prependHexPrefix(payload.substring(4));
if (Numeric.cleanHexPrefix(args).length() != 40) {
if (Numeric.cleanHexPrefix(args).length() / 2 != 20) {
throw new AddressFormatException("Short address args byte length must be equal to 20");
}
if (CODE_HASH_IDX_BLAKE160.equals(codeHashIndex)) {
Expand Down

0 comments on commit b10cdab

Please sign in to comment.