From 96f39dcccac0dbf4711a29e04de5d2311c5a3cff Mon Sep 17 00:00:00 2001 From: evlekht Date: Mon, 25 Nov 2024 21:58:54 +0400 Subject: [PATCH] Prevent minting it response status is not success --- internal/messaging/mint_v1.go | 2 +- internal/messaging/mint_v2.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/messaging/mint_v1.go b/internal/messaging/mint_v1.go index 5c83cd6..c56492a 100644 --- a/internal/messaging/mint_v1.go +++ b/internal/messaging/mint_v1.go @@ -17,7 +17,7 @@ func (h *evmResponseHandler) prepareMintResponseV1( response *bookv1.MintResponse, request *bookv1.MintRequest, ) { - if response.Header.Status == typesv1.StatusType_STATUS_TYPE_FAILURE { + if response.Header.Status != typesv1.StatusType_STATUS_TYPE_SUCCESS { return } diff --git a/internal/messaging/mint_v2.go b/internal/messaging/mint_v2.go index 72f89ad..b1eee1a 100644 --- a/internal/messaging/mint_v2.go +++ b/internal/messaging/mint_v2.go @@ -18,7 +18,7 @@ func (h *evmResponseHandler) prepareMintResponseV2( response *bookv2.MintResponse, request *bookv2.MintRequest, ) { - if response.Header.Status == typesv1.StatusType_STATUS_TYPE_FAILURE { + if response.Header.Status != typesv1.StatusType_STATUS_TYPE_SUCCESS { return } // TODO: @VjeraTurk check if CMAccount exists