Skip to content

imp(ibc-testkit): remove field access of MockContext #1043

Closed
@rnbguy

Description

@rnbguy

Bug Summary

Some of the tests are written while accessing MockContext fields. Field access is discouraged over associated methods.

Details

The following should be refactored to use an associated method, e.g., MockContext::ibc_events(&self).

https://github.com/cosmos/ibc-rs/blob/d5e83145c177a2cd62135aebadaba5c9feb0fa2b/ibc-testkit/tests/core/ics04_channel/timeout.rs#L380-L385

Version

till v0.49.1

Metadata

Metadata

Assignees

Labels

O: testingObjective: aims to improve testing coverage

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions