mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00

* initial asset notarization restructuring * adjusted test cases, two are still failing * removed obsolete data structures --------- Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
18 lines
376 B
Go
18 lines
376 B
Go
package keeper
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/planetmint/planetmint-go/x/asset/types"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
func (k msgServer) NotarizeAsset(goCtx context.Context, msg *types.MsgNotarizeAsset) (*types.MsgNotarizeAssetResponse, error) {
|
|
ctx := sdk.UnwrapSDKContext(goCtx)
|
|
|
|
k.StoreAsset(ctx, *msg)
|
|
|
|
return &types.MsgNotarizeAssetResponse{}, nil
|
|
}
|