Skip to content

Commit

Permalink
bump version & fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-Felix committed Aug 3, 2024
1 parent 4ffd9ec commit 0278b2b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "mospy-wallet"
version = "0.5.4"
version = "0.5.5"
description = "This package is a fork of cosmospy and is a light framework for the cosmos ecosystem"
authors = [
{ name = "ctrl-felix", email = "[email protected]" },
Expand All @@ -27,6 +27,7 @@ dependencies = [
"hdwallets>=0.1.2",
"safe-pysha3>=1.0.3;python_version>='3.9'",
"pysha3==1.0.2;python_version<'3.9'",
"pycryptodome>=3.20.0"
]
dynamic = []

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bech32==1.2.0
cosmospy_protobuf>=0.2.0
ecdsa==0.18.0
grpcio~=1.47.0
ecdsa>=0.19.0
grpcio>=1.56.2
hdwallets==0.1.2
httpx~=0.23.0
mnemonic==0.20
Expand Down
3 changes: 2 additions & 1 deletion src/mospy/clients/HTTPClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def _make_post_request(self, path, payload, timeout):
if req.status_code != 200:
try:
data = req.json()
print(data)
message = f"({data['message']}"
except:
except Exception:
message = ""
raise NodeException(f"Error while doing request to api endpoint {message}")

Expand Down
2 changes: 1 addition & 1 deletion tests/clients/test_grpcclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_transaction_submitting(self):
tx = Transaction(
account=account,
fee=fee,
gas=10000000000,
gas=100000,
memo="This is a mospy test transaction"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/clients/test_httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_transaction_submitting(self):
tx = Transaction(
account=account,
fee=fee,
gas=10000000000,
gas=100000,
)

tx.add_msg(
Expand Down

0 comments on commit 0278b2b

Please sign in to comment.