Skip to content

Commit

Permalink
fix ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Dec 29, 2023
1 parent dd2d895 commit 9c76b03
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
8 changes: 4 additions & 4 deletions integration_tests/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration_tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pytest-github-actions-annotate-failures = "^0.1.7"
protobuf = "^3.20.2"
pyyaml = "^6.0.1"
python-dateutil = "^2.8.1"
pystarport = { git = "https://github.com/crypto-com/pystarport.git", branch = "main", rev = "39ecbd29fcdd50cb3015524c13755fda05bdf23d" }
pystarport = { git = "https://github.com/mmsqe/pystarport.git", branch = "event_query_tx_for", rev = "6e21e83f6794f997feb3bad169295c0585c3cf85" }
chainlibpy = "^2.2.0"

# manually upgrade to make hatchling build success in poetry2nix
Expand Down
28 changes: 17 additions & 11 deletions integration_tests/test_hardware_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,40 +38,46 @@ def test_ledger_transfer(cluster):
print("transfer tx", tx["txhash"])
assert tx["logs"] == [
{
"msg_index": 0,
"log": "",
"events": [
{
"type": "message",
"attributes": [
{"key": "receiver", "value": reserve_addr},
{"key": "amount", "value": "100000000basecro"},
{"key": "action", "value": "/cosmos.bank.v1beta1.MsgSend"},
{"key": "sender", "value": hw_addr},
{"key": "module", "value": "bank"},
],
"type": "coin_received",
},
{
"type": "coin_spent",
"attributes": [
{"key": "spender", "value": hw_addr},
{"key": "amount", "value": "100000000basecro"},
],
"type": "coin_spent",
},
{
"type": "coin_received",
"attributes": [
{"key": "action", "value": "/cosmos.bank.v1beta1.MsgSend"},
{"key": "sender", "value": hw_addr},
{"key": "module", "value": "bank"},
{"key": "receiver", "value": reserve_addr},
{"key": "amount", "value": "100000000basecro"},
],
"type": "message",
},
{
"type": "transfer",
"attributes": [
{"key": "recipient", "value": reserve_addr},
{"key": "sender", "value": hw_addr},
{"key": "amount", "value": "100000000basecro"},
],
"type": "transfer",
},
{
"type": "message",
"attributes": [
{"key": "sender", "value": hw_addr},
],
},
],
"log": "",
"msg_index": 0,
}
]

Expand Down

0 comments on commit 9c76b03

Please sign in to comment.