mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
23 lines
501 B
Go
23 lines
501 B
Go
package keeper
|
|
|
|
import (
|
|
"context"
|
|
|
|
"planetmint-go/x/machine/types"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMachine) (*types.MsgAttestMachineResponse, error) {
|
|
ctx := sdk.UnwrapSDKContext(goCtx)
|
|
|
|
if msg.Machine.Reissue {
|
|
k.Logger(ctx).Info("TODO Implement handle on reissue == true")
|
|
}
|
|
|
|
k.StoreMachine(ctx, *msg.Machine)
|
|
k.StoreMachineIndex(ctx, *msg.Machine)
|
|
|
|
return &types.MsgAttestMachineResponse{}, nil
|
|
}
|