Skip to content

Commit 54bb0a6

Browse files
committed
Fix wording
1 parent d52ad73 commit 54bb0a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/chain_client/40_MsgExecuteContract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def main() -> None:
2525
account = await client.get_account(address.to_acc_bech32())
2626

2727
# prepare tx msg
28-
# NOTE: COIN DENOMS MUST BE SORTED IN ALPHABETICAL ORDER
28+
# NOTE: COIN MUST BE SORTED IN ALPHABETICAL ORDER BY DENOMS
2929
funds = [
3030
composer.Coin(amount=69, denom='factory/inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6/inj12ngevx045zpvacus9s6anr258gkwpmthnz80e9'),
3131
composer.Coin(amount=420, denom='peggy0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7'),

pyinjective/composer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def MsgExecuteContract(self, sender: str, contract: str, msg: str, **kwargs):
269269
sender=sender,
270270
contract=contract,
271271
msg=bytes(msg, "utf-8"),
272-
funds=kwargs.get('funds') # funds is a list of cosmos_dot_base_dot_v1beta1_dot_coin__pb2.Coin. The denoms in the list must be in alphabetical order.
272+
funds=kwargs.get('funds') # funds is a list of cosmos_dot_base_dot_v1beta1_dot_coin__pb2.Coin. The coins in the list must be sorted in alphabetical order by denoms.
273273
)
274274

275275
def MsgDeposit(self, sender: str, subaccount_id: str, amount: float, denom: str):

0 commit comments

Comments
 (0)