feat: tip frame (sign/verify/encode/decode), wallet balance + receive address, F6 wallet screen with QR, dispatch Kind::Tip
This commit is contained in:
parent
7b147d8ebe
commit
10d81964a5
10 changed files with 511 additions and 24 deletions
|
|
@ -746,8 +746,8 @@ impl Store {
|
|||
if p.dir != "in" && p.dir != "out" {
|
||||
return Err(Error("dir must be in or out".into()));
|
||||
}
|
||||
if p.kind != "invoice" && p.kind != "receipt" {
|
||||
return Err(Error("kind must be invoice or receipt".into()));
|
||||
if p.kind != "invoice" && p.kind != "receipt" && p.kind != "tip" {
|
||||
return Err(Error("kind must be invoice, receipt, or tip".into()));
|
||||
}
|
||||
crate::pay::parse_atomic(p.amount_atomic).map_err(|e| Error(e.to_string()))?;
|
||||
crate::pay::check_address(p.address).map_err(|e| Error(e.to_string()))?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue