Skip to content

Add boundary tests for IBC channel parameter validation#2510

Open
modernzju wants to merge 1 commit into
CosmWasm:mainfrom
modernzju:main
Open

Add boundary tests for IBC channel parameter validation#2510
modernzju wants to merge 1 commit into
CosmWasm:mainfrom
modernzju:main

Conversation

@modernzju

Copy link
Copy Markdown

Summary

Adds unit coverage for ValidateChannelParams to document and verify the IBC channel sequence boundary behavior.

The new tests cover:

  • channel-0
  • the maximum allowed uint32 channel sequence
  • a channel sequence above uint32
  • an invalid channel ID format

This is a test-only change and does not modify runtime behavior.

Testing

  • gofmt
  • git diff --check

I attempted to run:

go test -mod=readonly -tags='ledger test_ledger_mock' ./x/wasm -run '^TestValidateChannelParams$' -count=1

Signed-off-by: modernzju <modernzju@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant