Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Dec 5, 2023
1 parent 1056929 commit eaf3e13
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions integration_tests/test_nft_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,28 @@ def test_nft_transfer(cluster):
== "/chainmain.nft.v1.MsgMintNFT"
)

# nft transfer that's supposed to fail, exceeds max receiver length
rsp = json.loads(
cli_src.raw(
"tx",
"nft-transfer",
"transfer",
"nft",
src_channel,
'a'*2049,

Check failure on line 107 in integration_tests/test_nft_transfer.py

View workflow job for this annotation

GitHub Actions / lint

./integration_tests/test_nft_transfer.py:107:13: BLK100 Black would make changes.
denomid,
tokenid,
"-y",
home=cli_src.data_dir,
from_=addr_src,
keyring_backend="test",
chain_id=cli_src.chain_id,
node=cli_src.node_rpc,
)
)
assert rsp["code"] != 0
assert "receiver length must be less than 2048" in rsp["raw_log"]

# transfer nft on mid-destination chain
rsp = json.loads(
cli_src.raw(
Expand Down

0 comments on commit eaf3e13

Please sign in to comment.