@@ -139,10 +139,13 @@ pub enum ErrorCode
139139 DidAlreadyExistsError = 600 ,
140140
141141 // Unknown payment method was given
142- UnknownPaymentMethod = 700 ,
142+ PaymentUnknownMethodError = 700 ,
143143
144144 //No method were scraped from inputs/outputs or more than one were scraped
145- IncompatiblePaymentError = 701
145+ PaymentIncompatibleMethodsError = 701 ,
146+
147+ // Insufficient funds on inputs
148+ PaymentInsufficientFundsError = 702 ,
146149}
147150
148151impl ErrorCode {
@@ -191,8 +194,9 @@ impl ErrorCode {
191194 AnoncredsCredDefAlreadyExistsError => "Credential definition already exists" ,
192195 UnknownCryptoTypeError => "Unknown format of DID entity keys" ,
193196 DidAlreadyExistsError => "Did already exists" ,
194- UnknownPaymentMethod => "Unknown payment method was given" ,
195- IncompatiblePaymentError => "Multiple different payment methods were specified" ,
197+ PaymentUnknownMethodError => "Unknown payment method was given" ,
198+ PaymentIncompatibleMethodsError => "Multiple different payment methods were specified" ,
199+ PaymentInsufficientFundsError => "Insufficient funds on inputs" ,
196200 }
197201 }
198202}
0 commit comments