mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-27 07:48:29 +00:00
* registerAsset * added new command and new query Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
17 lines
426 B
Go
17 lines
426 B
Go
package keeper
|
|
|
|
import (
|
|
"context"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/planetmint/planetmint-go/x/machine/types"
|
|
)
|
|
|
|
func (k msgServer) NotarizeLiquidAsset(goCtx context.Context, msg *types.MsgNotarizeLiquidAsset) (*types.MsgNotarizeLiquidAssetResponse, error) {
|
|
ctx := sdk.UnwrapSDKContext(goCtx)
|
|
|
|
k.StoreLiquidAttest(ctx, *msg.GetNotarization())
|
|
|
|
return &types.MsgNotarizeLiquidAssetResponse{}, nil
|
|
}
|