planetmint-go/x/machine/keeper/msg_server_notarize_liquid_asset.go
Julian Strobl f18d4542e2
Merge release_0_5 branch (#202)
* Fix liuqid notarization (#191)

* Fix liuqid notarization - 2nd part (#193)

* fixed missing unmarshaling
* fixed message formatting issue

* fixed config parsing issue (#194)

* [util] Supply fees

But only where we want to see the transaction succeed. The other ones we
let in a broken state.

* Added logger a logger struct to log with a TAG (#198)

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
Co-authored-by: Jürgen Eckel <eckelj@users.noreply.github.com>
2023-11-28 10:22:39 +01:00

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
}