mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
fixed missing return value check
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
d88ec092f0
commit
2a09f9d90d
@ -24,6 +24,9 @@ func (k msgServer) RegisterTrustAnchor(goCtx context.Context, msg *types.MsgRegi
|
||||
}
|
||||
|
||||
err := k.StoreTrustAnchor(ctx, *msg.TrustAnchor, false)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &types.MsgRegisterTrustAnchorResponse{}, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user