* x/ibc-transfer: use ibc testing package * coin denom failure * update handler tests * refactor first test in relay * update onrecvtest, failing tests expected due to existing bug * update on acknowledgement test, failing test is expected * refactor timeout test * revert coin validation changed, comment out tests * minor fix * update coordinator.go * update coordinator.go * add comment to fix handler test * add link to issue in handler test * fix test Co-authored-by: Colin Axner <colinaxner@berkeley.edu> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
12 lines
266 B
Go
12 lines
266 B
Go
package testing
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
func NewTransferCoins(dst TestChannel, denom string, amount int64) sdk.Coins {
|
|
return sdk.NewCoins(sdk.NewCoin(fmt.Sprintf("%s/%s/%s", dst.PortID, dst.ID, denom), sdk.NewInt(amount)))
|
|
}
|