Prathamesh Musale
d346b95234
- Add E2E tests following pattern suggested in cosmos-sdk docs: https://docs.cosmos.network/v0.50/build/building-modules/testing#end-to-end-tests - Tests for gRPC requests - Tests for manually configured CLI commands - Add a CI workflow to run these E2E tests Reviewed-on: deep-stack/laconic2d#13 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
18 lines
324 B
Go
18 lines
324 B
Go
package bond
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
var (
|
|
_ sdk.Msg = &MsgCreateBond{}
|
|
)
|
|
|
|
// NewMsgCreateBond is the constructor function for MsgCreateBond.
|
|
func NewMsgCreateBond(coins sdk.Coins, signer sdk.AccAddress) MsgCreateBond {
|
|
return MsgCreateBond{
|
|
Coins: coins,
|
|
Signer: signer.String(),
|
|
}
|
|
}
|