feat: use checked addition for u64

This commit is contained in:
thesimplekid
2025-02-12 12:27:05 +00:00
parent fedd4b9e58
commit 85ea5fff74
7 changed files with 29 additions and 6 deletions

View File

@@ -11,6 +11,9 @@ pub enum Error {
/// Unknown invoice
#[error("Unknown invoice")]
UnknownInvoice,
/// Amount overflow
#[error("Amount overflow")]
AmountOverflow,
/// Anyhow error
#[error(transparent)]
Anyhow(#[from] anyhow::Error),