Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Oct 27, 2023
1 parent 90a23bc commit 4116e9b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
1 change: 0 additions & 1 deletion cosmpy/aerial/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ def query_staking_summary(self, address: Address) -> StakingSummary:
req, self.staking.DelegatorDelegations, per_page_limit=1
):
for item in resp.delegation_responses:

req = QueryDelegationRewardsRequest(
delegator_address=str(address),
validator_address=str(item.delegation.validator_address),
Expand Down
1 change: 0 additions & 1 deletion cosmpy/aerial/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def prepare_and_broadcast_basic_transaction(
# simply build the fee from the provided gas limit
fee = client.estimate_fee_from_gas(gas_limit)
else:

# we need to build up a representative transaction so that we can accurately simulate it
tx.seal(
SigningCfg.direct(sender.public_key(), account.sequence),
Expand Down
2 changes: 1 addition & 1 deletion cosmpy/aerial/contract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def _load_schema(self, schema_path: Optional[str]):
if self._schema is None:
return

for (msg_type, schema) in self._schema.items():
for msg_type, schema in self._schema.items():
if "instantiate" in msg_type:
self._instantiate_schema = schema
elif "query" in msg_type:
Expand Down
34 changes: 20 additions & 14 deletions tests/unit/test_aerial/coins_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,30 @@
(" ", []),
("50000atestfet", [Coin(amount="50000", denom="atestfet")]),
(
"50000atestfet, 200foobar",
[
Coin(amount="50000", denom="atestfet"),
Coin(amount="200", denom="foobar"),
],
"50000atestfet, 200foobar",
[
Coin(amount="50000", denom="atestfet"),
Coin(amount="200", denom="foobar"),
],
),
(
"500ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B",
[
Coin(amount="500", denom="ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B")
]
"500ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B",
[
Coin(
amount="500",
denom="ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B",
)
],
),
(
"500ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B, 50000atestfet",
[
Coin(amount="500", denom="ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B"),
Coin(amount="50000", denom="atestfet"),
]
"500ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B, 50000atestfet",
[
Coin(
amount="500",
denom="ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B",
),
Coin(amount="50000", denom="atestfet"),
],
),
],
)
Expand Down

0 comments on commit 4116e9b

Please sign in to comment.