Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Feb 20, 2024
1 parent aeadb4d commit 0af6cf9
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions integration_tests/test_ibc_rly.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,35 @@ def ibc(request, tmp_path_factory):
)


def amount_dict(amt, denom):
return [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
]


def coin_received(receiver, amt, denom):
return {
"receiver": receiver,
"amount": [(amt, denom)],
"amount": amount_dict(amt, denom),
}


def coin_base(minter, amt, denom):
return {
"minter": minter,
"amount": [(amt, denom)],
"amount": amount_dict(amt, denom),
}


def coin_spent(spender, amt, denom):
return {
"spender": spender,
"amount": [(amt, denom)],
"amount": amount_dict(amt, denom),
}


Expand All @@ -98,14 +109,14 @@ def transfer(src, dst, amt, denom):
return {
"recipient": dst,
"sender": src,
"amount": [(amt, denom)],
"amount": amount_dict(amt, denom),
}


def burn(burner, amt, denom):
return {
"burner": burner,
"amount": [(amt, denom)],
"amount": amount_dict(amt, denom),
}


Expand All @@ -121,14 +132,7 @@ def recv_packet(seq, src, dst, amt, denom):
{
"receiver": dst,
"sender": src,
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
"amount": amount_dict(amt, denom),
}
),
}
Expand Down Expand Up @@ -163,14 +167,7 @@ def write_ack(seq, src, dst, amt, denom):
{
"receiver": dst,
"sender": src,
"amount": [
AttributeDict(
{
"amount": amt,
"denom": denom,
}
)
],
"amount": amount_dict(amt, denom),
}
),
}
Expand Down

0 comments on commit 0af6cf9

Please sign in to comment.