max: convert v3 DepositStateFailed into rejected

This commit is contained in:
c9s 2024-09-04 15:00:37 +08:00
parent a2f8fe5f72
commit 2527c0c7b7
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -262,6 +262,9 @@ func toGlobalDepositStatus(a max.DepositState) types.DepositStatus {
case max.DepositStateAccepted: case max.DepositStateAccepted:
return types.DepositSuccess return types.DepositSuccess
case max.DepositStateFailed: // v3 state
return types.DepositRejected
case max.DepositStateProcessing: // v3 states case max.DepositStateProcessing: // v3 states
return types.DepositPending return types.DepositPending