Skip to content

Commit

Permalink
Make CaptureIbcEvents in ibctesting public.
Browse files Browse the repository at this point in the history
Before this change, it wasn't possible to implement the
`chain.SendMsgs` method without
[copying](https://github.com/public-awesome/ics721/blob/main/e2e/suite_helpers.go#L81-L98)
them over.
  • Loading branch information
0xekez committed Mar 9, 2023
1 parent a52bf7e commit b64fa07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/wasm/ibctesting/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,12 @@ func (chain *TestChain) SendMsgs(msgs ...sdk.Msg) (*sdk.Result, error) {

chain.Coordinator.IncrementTime()

chain.captureIBCEvents(r)
chain.CaptureIBCEvents(r)

return r, nil
}

func (chain *TestChain) captureIBCEvents(r *sdk.Result) {
func (chain *TestChain) CaptureIBCEvents(r *sdk.Result) {
toSend := getSendPackets(r.Events)
if len(toSend) > 0 {
// Keep a queue on the chain that we can relay in tests
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/ibctesting/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ func (chain *TestChain) SendNonDefaultSenderMsgs(senderPrivKey cryptotypes.PrivK
if err != nil {
return r, err
}
chain.captureIBCEvents(r)
chain.CaptureIBCEvents(r)
return r, nil
}

0 comments on commit b64fa07

Please sign in to comment.