Skip to content

Commit

Permalink
sendToWithdrawal ack test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowman committed Feb 13, 2024
1 parent 3f9e3f3 commit ec4085d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions x/interchainstaking/keeper/ibc_packet_handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4051,6 +4051,30 @@ func (suite *KeeperTestSuite) TestHandleCompleteSend() {
memo: "unbondSend/7C8B95EEE82CB63771E02EBEB05E6A80076D70B2E0A1C457F1FD1A0EF2EA961D",
expectedError: errors.New("no matching withdrawal record found"),
},
{
name: "From DepositAddress to Withdrawal Address",
message: func(zone *types.Zone) sdk.Msg {
return &banktypes.MsgSend{
FromAddress: zone.DepositAddress.Address,
ToAddress: zone.WithdrawalAddress.Address,
Amount: sdk.NewCoins(sdk.NewCoin(zone.BaseDenom, sdk.NewInt(1_000_000))),
}
},
memo: "",
expectedError: nil,
},
{
name: "From DelegateAddress to Withdrawal Address",
message: func(zone *types.Zone) sdk.Msg {
return &banktypes.MsgSend{
FromAddress: zone.DelegationAddress.Address,
ToAddress: zone.WithdrawalAddress.Address,
Amount: sdk.NewCoins(sdk.NewCoin(zone.BaseDenom, sdk.NewInt(1_000_000))),
}
},
memo: "",
expectedError: nil,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit ec4085d

Please sign in to comment.