Skip to content

Commit

Permalink
Added test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
bznein committed Jul 15, 2024
1 parent 30b0095 commit fcd6464
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/apps/callbacks/forwarding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ func (s *CallbacksForwardingTestSuite) TestForwardingWithMemoCallback() {
expCallbackMapOnChainB: map[callbacktypes.CallbackType]int{callbacktypes.CallbackTypeAcknowledgementPacket: 1},
expCallbackMapOnChainC: map[callbacktypes.CallbackType]int{},
},
{
name: "ack and recv callback",
testMemo: fmt.Sprintf(`{"src_callback": {"address": "%s"}, "dest_callback": {"address": "%s"}}`, simapp.SuccessContract, simapp.SuccessContract),
expCallbackMapOnChainB: map[callbacktypes.CallbackType]int{callbacktypes.CallbackTypeAcknowledgementPacket: 1},
expCallbackMapOnChainC: map[callbacktypes.CallbackType]int{callbacktypes.CallbackTypeReceivePacket: 1},
},
{
name: "ack callback with low gas (error)",
testMemo: fmt.Sprintf(`{"src_callback": {"address": "%s"}}`, simapp.OogErrorContract),
Expand Down

0 comments on commit fcd6464

Please sign in to comment.