use msat_or_all for fundpsbt request amount

This commit is contained in:
joemphilips
2022-08-26 18:46:43 +09:00
committed by Christian Decker
parent d4ef20d54a
commit 836a2aa261
5 changed files with 100 additions and 100 deletions

View File

@@ -988,7 +988,7 @@ message KeysendExtratlvs {
}
message FundpsbtRequest {
Amount satoshi = 1;
AmountOrAll satoshi = 1;
Feerate feerate = 2;
uint32 startweight = 3;
optional uint32 minconf = 4;

View File

@@ -1355,7 +1355,7 @@ impl From<pb::KeysendRequest> for requests::KeysendRequest {
impl From<pb::FundpsbtRequest> for requests::FundpsbtRequest {
fn from(c: pb::FundpsbtRequest) -> Self {
Self {
satoshi: c.satoshi.unwrap().into(), // Rule #1 for type msat
satoshi: c.satoshi.unwrap().into(), // Rule #1 for type msat_or_all
feerate: c.feerate.unwrap().into(), // Rule #1 for type feerate
startweight: c.startweight, // Rule #1 for type u32
minconf: c.minconf, // Rule #1 for type u32?