manually handle claim msg case (scaffold bug)
parent
021c2301c5
commit
72757b3c18
|
@ -4,6 +4,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"colinear/x/colinearcore/types"
|
"colinear/x/colinearcore/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||||
|
|
|
@ -33,6 +33,9 @@ func NewHandler(k keeper.Keeper) sdk.Handler {
|
||||||
case *types.MsgUnlockAllFunds:
|
case *types.MsgUnlockAllFunds:
|
||||||
res, err := msgServer.UnlockAllFunds(sdk.WrapSDKContext(ctx), msg)
|
res, err := msgServer.UnlockAllFunds(sdk.WrapSDKContext(ctx), msg)
|
||||||
return sdk.WrapServiceResult(ctx, res, err)
|
return sdk.WrapServiceResult(ctx, res, err)
|
||||||
|
case *types.MsgClaimFunds:
|
||||||
|
res, err := msgServer.ClaimFunds(sdk.WrapSDKContext(ctx), msg)
|
||||||
|
return sdk.WrapServiceResult(ctx, res, err)
|
||||||
// this line is used by starport scaffolding # 1
|
// this line is used by starport scaffolding # 1
|
||||||
default:
|
default:
|
||||||
errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg)
|
errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg)
|
||||||
|
|
Loading…
Reference in New Issue