Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from terra-project/hotfix_0.1.2
Browse files Browse the repository at this point in the history
v0.1.2
  • Loading branch information
ouiliame committed Mar 20, 2020
2 parents 037ea34 + 28693a1 commit c3c8d0b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,5 +1,10 @@
# Version Changelog

## 0.1.2 (2020-03-20)

- Fix `Dec` pretty-printing issue on Jupyter
- Add `MsgInfosQuery.__contains__` support for Message classes

## 0.1.1 (2020-03-09)

- Option to change coin type other than LUNA for MnemonicKey
Expand Down
2 changes: 1 addition & 1 deletion jigu/__version__.py
@@ -1,7 +1,7 @@
__title__ = "jigu"
__description__ = "Python SDK for Terra"
__url__ = "https://jigu.terra.money/"
__version__ = "0.1.1"
__version__ = "0.1.2"
__author__ = "Terraform Labs, PTE. LTD"
__author_email__ = "engineering@terra.money"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion jigu/core/sdk/dec.py
Expand Up @@ -92,7 +92,7 @@ def frac(self) -> str:
def to_data(self) -> str:
return str(self)

def _pretty_repr_(self, path):
def _pretty_repr_(self, path: str = ""):
return self.short_str

def __eq__(self, other) -> bool:
Expand Down
7 changes: 5 additions & 2 deletions jigu/query/msginfo.py
Expand Up @@ -27,7 +27,7 @@ class MsgInfo(wrapt.ObjectProxy):
),
)

def __init__(self, msg: StdMsg, success: bool, log: str, events: EventsQuery):
def __init__(self, msg: StdMsg, success: bool, log: dict, events: EventsQuery):
wrapt.ObjectProxy.__init__(self, msg)
try:
log = json.loads(log)
Expand Down Expand Up @@ -135,7 +135,10 @@ def __iter__(self):
return iter(self.msginfos)

def __contains__(self, item):
return item in self.types or self.actions
if isinstance(item, StdMsg):
return item.type in self.types
else:
return item in self.types or self.actions

@property
def logs(self) -> List[JiguBox]:
Expand Down

0 comments on commit c3c8d0b

Please sign in to comment.