max: convert v3 DepositStateFailed into rejected

This commit is contained in:
c9s 2024-09-04 15:00:37 +08:00 committed by lychiyu
parent 4b74a699f4
commit cb9f4a0186

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