Skip to content

Commit c7f1ec4

Browse files
committed
refactor: reorder ContractError variants for improved clarity and consistency
1 parent 2da004c commit c7f1ec4

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

contracts/escrow/src/error.rs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,36 @@ pub enum ContractError {
1919
EscrowNotFullyProcessed = 14,
2020
EscrowPropertiesMismatch = 15,
2121
FlagsMustBeFalse = 16,
22-
IncompatibleEscrowWasmHash = 17,
23-
InsufficientApproverFundsForCommissions = 18,
24-
InsufficientEscrowFundsToMakeTheRefund = 19,
25-
InsufficientFundsForEscrowFunding = 20,
26-
InsufficientFundsForRefund = 21,
27-
InsufficientFundsForResolution = 22,
28-
InsufficientServiceProviderFundsForCommissions = 23,
29-
InvalidMileStoneIndex = 24,
30-
MilestoneAlreadyInDispute = 25,
31-
MilestoneAlreadyReleased = 26,
32-
MilestoneAlreadyResolved = 27,
33-
MilestoneApprovedCantChangeEscrowProperties = 28,
34-
MilestoneHasAlreadyBeenApproved = 29,
35-
MilestoneNotCompleted = 30,
36-
MilestoneNotFound = 31,
37-
MilestoneNotInDispute = 32,
38-
MilestoneOpenedForDisputeResolution = 33,
39-
MilestoneToApproveDoesNotExist = 34,
40-
MilestoneToUpdateDoesNotExist = 35,
41-
NoMileStoneDefined = 36,
42-
OnlyApproverChangeMilstoneFlag = 37,
43-
OnlyDisputeResolverCanExecuteThisFunction = 38,
44-
OnlyPlatformAddressExecuteThisFunction = 39,
45-
OnlyReleaseSignerCanReleaseEarnings = 40,
46-
OnlyServiceProviderChangeMilstoneStatus = 41,
47-
Overflow = 42,
48-
PlatformAddressCannotBeChanged = 43,
49-
PlatformFeeTooHigh = 44,
50-
TooManyEscrowsRequested = 45,
51-
TooManyMilestones = 46,
22+
InsufficientApproverFundsForCommissions = 17,
23+
InsufficientEscrowFundsToMakeTheRefund = 18,
24+
InsufficientFundsForEscrowFunding = 19,
25+
InsufficientFundsForRefund = 20,
26+
InsufficientFundsForResolution = 21,
27+
InsufficientServiceProviderFundsForCommissions = 22,
28+
InvalidMileStoneIndex = 23,
29+
MilestoneAlreadyInDispute = 24,
30+
MilestoneAlreadyReleased = 25,
31+
MilestoneAlreadyResolved = 26,
32+
MilestoneApprovedCantChangeEscrowProperties = 27,
33+
MilestoneHasAlreadyBeenApproved = 28,
34+
MilestoneNotCompleted = 29,
35+
MilestoneNotFound = 30,
36+
MilestoneNotInDispute = 31,
37+
MilestoneOpenedForDisputeResolution = 32,
38+
MilestoneToApproveDoesNotExist = 33,
39+
MilestoneToUpdateDoesNotExist = 34,
40+
NoMileStoneDefined = 35,
41+
OnlyApproverChangeMilstoneFlag = 36,
42+
OnlyDisputeResolverCanExecuteThisFunction = 37,
43+
OnlyPlatformAddressExecuteThisFunction = 38,
44+
OnlyReleaseSignerCanReleaseEarnings = 39,
45+
OnlyServiceProviderChangeMilstoneStatus = 40,
46+
Overflow = 41,
47+
PlatformAddressCannotBeChanged = 42,
48+
PlatformFeeTooHigh = 43,
49+
TooManyEscrowsRequested = 44,
50+
TooManyMilestones = 45,
51+
TooManyDistributions = 46,
5252
TotalAmountCannotBeZero = 47,
5353
TotalDisputeFundsMustNotExceedTheMilestoneAmount = 48,
5454
UnauthorizedToChangeDisputeFlag = 49,

0 commit comments

Comments
 (0)