Skip to content

Commit cda300a

Browse files
authored
fix: align HostPaymentTopUpError SCALE indices with triangle-js-sdks (#223)
PartialPayment is index 2 and Unknown is index 3, matching the PaymentTopUpErr variant order in triangle-js-sdks.
1 parent 459dcd7 commit cda300a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/crates/truapi/src/v01/payment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ pub enum HostPaymentTopUpError {
128128
InsufficientFunds,
129129
/// The source account was not found or is invalid.
130130
InvalidSource,
131-
/// Catch-all.
132-
Unknown { reason: String },
133131
/// Some coins were claimed but the total fell short of the requested amount.
134132
PartialPayment {
135133
/// Amount that was successfully credited.
136134
credited: Balance,
137135
},
136+
/// Catch-all.
137+
Unknown { reason: String },
138138
}
139139

140140
/// Error from [`crate::api::Payment::request`].

0 commit comments

Comments
 (0)