mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
add check for machine.reissue == true
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
fbe1a475a7
commit
a6814a0594
@ -11,6 +11,10 @@ import (
|
|||||||
func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMachine) (*types.MsgAttestMachineResponse, error) {
|
func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMachine) (*types.MsgAttestMachineResponse, error) {
|
||||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||||
|
|
||||||
|
if msg.Machine.Reissue {
|
||||||
|
k.Logger(ctx).Info("TODO Implement handle on reissue == true")
|
||||||
|
}
|
||||||
|
|
||||||
k.StoreMachine(ctx, *msg.Machine)
|
k.StoreMachine(ctx, *msg.Machine)
|
||||||
k.StoreMachineIndex(ctx, *msg.Machine)
|
k.StoreMachineIndex(ctx, *msg.Machine)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user