Use SemanticError in OfferBuilder::build
[rust-lightning] / lightning / src / offers / parse.rs
index c9d568a9007aa09c6b90740f0c3ad75ed28ecd85..032e95b3cc52199a095c29a78c064abed2b6c40f 100644 (file)
@@ -98,6 +98,8 @@ pub enum SemanticError {
        MissingAmount,
        /// The amount exceeded the total bitcoin supply.
        InvalidAmount,
+       /// A currency was provided that is not supported.
+       UnsupportedCurrency,
        /// A required description was not provided.
        MissingDescription,
        /// A signing pubkey was not provided.