Skip to content

Commit

Permalink
Merge pull request from GHSA-3v7p-4x7p-4rx7
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan authored May 25, 2023
1 parent ac1df67 commit 90a24fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ go 1.19

module github.com/cosmos/ibc-go/v6

retract v6.0.0 // depends on SDK version < v0.46.7
retract (
v6.1.0 // contains huckleberry vulnerability
[v6.0.0, v6.0.1] // depends on SDK version < v0.46.7
)

require (
cosmossdk.io/math v1.0.0-beta.3
Expand Down
4 changes: 0 additions & 4 deletions modules/core/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,6 @@ func (k Keeper) RecvPacket(goCtx context.Context, msg *channeltypes.MsgRecvPacke
if ack == nil || ack.Success() {
// write application state changes for asynchronous and successful acknowledgements
writeFn()
} else {
// NOTE: The context returned by CacheContext() refers to a new EventManager, so it needs to explicitly set events to the original context.
// Events should still be emitted from failed acks and asynchronous acks
ctx.EventManager().EmitEvents(cacheCtx.EventManager().Events())
}

// Set packet acknowledgement only if the acknowledgement is not nil.
Expand Down

0 comments on commit 90a24fd

Please sign in to comment.