Skip to content

Commit

Permalink
fix pom.xml version
Browse files Browse the repository at this point in the history
  • Loading branch information
naughtyJun committed Dec 2, 2021
1 parent 351c51a commit 68d13cf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

opb-sdk-java

## 引入 opb-sdk-java

从 Asset 页面下载jar包,并手动将jar包上传到私服

依赖如下
```xml
<dependency>
<groupId>com.github.bianjieai</groupId>
<artifactId>opb-sdk</artifactId>
<version>0.1.1</version>
</dependency>
```

## Key Manger管理

### 0 新生成一个助记词(如果已有 私钥/keystore/助记词 忽略此步骤)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.bianjieai</groupId>
<artifactId>opb-sdk</artifactId>
<version>0.11</version>
<version>0.1.1</version>
<url>https://github.com/bianjieai/opb-sdk-java</url>
<name>irita-sdk</name>
<licenses>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/irita/sdk/client/BaseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public String buildTxHash(List<GeneratedMessageV3> msgs, BaseTx baseTx, Account

public Account queryAccount(BaseTx baseTx) {
if (!km.getKeyDAO().has(baseTx.getFrom())) {
throw new IritaSDKException(String.format("name %s has existed in keyDao", baseTx.getFrom()));
throw new IritaSDKException(String.format("name %s hasn't existed in keyDao", baseTx.getFrom()));
}
KeyInfo keyInfo = km.getKeyDAO().read(baseTx.getFrom(), baseTx.getPassword());
return queryAccount(keyInfo.getAddress());
Expand Down

0 comments on commit 68d13cf

Please sign in to comment.