Skip to content

Commit

Permalink
Prevent minting it response status is not success
Browse files Browse the repository at this point in the history
  • Loading branch information
evlekht committed Nov 28, 2024
1 parent 68d70a5 commit 96f39dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/messaging/mint_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion internal/messaging/mint_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96f39dc

Please sign in to comment.