Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from irisnet/develop
Browse files Browse the repository at this point in the history
Release/0.2.3
  • Loading branch information
zhangyelong authored Jul 26, 2018
2 parents 5041c38 + 7ef584e commit 6c3507d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion service/handler/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func GetTxType(docTx store.Docs) string {

func Handle(docTx store.Docs, mutex sync.Mutex, funChains []func(tx store.Docs, mutex sync.Mutex)) {
for _, fun := range funChains {
fun(docTx, mutex)
if docTx != nil {
fun(docTx, mutex)
}
}
}
5 changes: 4 additions & 1 deletion util/helper/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ func QueryAccountBalance(address string) store.Coins {
// Query from Tendermint with the provided storename and path
func Query(key cmn.HexBytes, storeName string, endPath string) (res []byte, err error) {
path := fmt.Sprintf("/store/%s/%s", storeName, endPath)
rpcClient := GetClient().Client
client := GetClient()
defer client.Release()

rpcClient := client.Client
if err != nil {
return res, err
}
Expand Down

0 comments on commit 6c3507d

Please sign in to comment.