mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-10-14 00:59:21 +00:00
Fix error throwing bug that lead to block creation inconsistencies (#212)
* removed error throwing within the AttestMachine method * add more extensive logging around that call Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
0455176123
commit
ff6aab33df
@ -56,7 +56,9 @@ func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMach
|
|||||||
util.GetAppLogger().Info(ctx, "Issuing Machine NFT")
|
util.GetAppLogger().Info(ctx, "Issuing Machine NFT")
|
||||||
err := k.issueMachineNFT(goCtx, msg.Machine)
|
err := k.issueMachineNFT(goCtx, msg.Machine)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, types.ErrNFTIssuanceFailed
|
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+err.Error())
|
||||||
|
} else {
|
||||||
|
util.GetAppLogger().Info(ctx, "Machine NFT issuance successful")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
util.GetAppLogger().Info(ctx, "skipping Machine NFT issuance")
|
util.GetAppLogger().Info(ctx, "skipping Machine NFT issuance")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user