Skip to content

Conversation

@atheeshp
Copy link
Owner

@atheeshp atheeshp commented Mar 7, 2023

No description provided.

func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, relayer sdk.AccAddress) error {
return am.cosmosAppModule.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer)
}
// func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, relayer sdk.AccAddress) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need to implement these methods. Now they are in the separate type IBCModule.

app.GetSubspace(disptypes.ModuleName),
)
mockModule := ibcmock.NewAppModule(scopedIBCMockKeeper, &app.IBCKeeper.PortKeeper)
mockModule := ibcmock.NewAppModule(&app.IBCKeeper.PortKeeper)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm missing something but I don't quite understand why is the mock needed....

Copy link

@snobbee snobbee Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faneaatiku here is an explanation:
https://github.com/atheeshp/sifnode/blob/master/app/app.go#L308-L309

	// NOTE: the IBC mock keeper and application module is used only for testing core IBC. Do
	// note replicate if you do not need to test core IBC or light clients.

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.

7 participants