Skip to content

Commit

Permalink
Get value
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Dec 29, 2024
1 parent 384f54d commit be58b2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/subcommand/wallet/offer/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ impl Create {
bail!("{} not owned by an usable address", self.inscription);
};

let Some(postage) = inscription.value else {
bail!("inscription is unbound");
};

let unsigned_transaction = Transaction {
version: Version(2),
lock_time: LockTime::ZERO,
Expand All @@ -52,7 +56,7 @@ impl Create {
}],
output: vec![
TxOut {
value: Amount::from_sat(inscription.value.unwrap()),
value: Amount::from_sat(postage),
script_pubkey: wallet.get_change_address()?.into(),
},
TxOut {
Expand Down

0 comments on commit be58b2a

Please sign in to comment.