File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/subcommand/wallet/offer Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -465,13 +465,13 @@ ord wallet offer create --rune <DECIMAL:RUNE> --fee-rate <FEE_RATE> --amount <AM
465
465
Accepting an Inscription or Runes Buy Offer
466
466
-------------------------------------------
467
467
468
- Accept the offer to buy the inscription ` INSCRIPTION_ID ` for ` AMOUNT ` via ` PSBT ` using:
468
+ Accept the offer to buy the inscription ` INSCRIPTION_ID ` for ` AMOUNT ` in ` PSBT ` using:
469
469
470
470
```
471
471
ord wallet offer accept --inscription <INSCRIPTION_ID> --amount <AMOUNT> --psbt <PSBT>
472
472
```
473
473
474
- Accept the offer to buy the rune balance ` DECIMAL:RUNE ` sold in ` PSBT ` using:
474
+ Accept the offer to buy the rune balance ` DECIMAL:RUNE ` in ` PSBT ` using:
475
475
476
476
```
477
477
ord wallet offer accept --rune <DECIMAL:RUNE> --amount <AMOUNT> --psbt <PSBT>
Original file line number Diff line number Diff line change @@ -200,27 +200,27 @@ impl Accept {
200
200
let mut contains_multiple_runes = false ;
201
201
let mut amount = 0 ;
202
202
203
- for ( _ , utxo) in & outgoing {
203
+ for utxo in outgoing. values ( ) {
204
204
let Some ( runes) = wallet. get_runes_balances_in_output ( utxo) ? else {
205
205
bail ! {
206
206
"outgoing input {} contains no runes" ,
207
- * utxo
207
+ utxo
208
208
}
209
209
} ;
210
210
211
211
if let Some ( inscriptions) = wallet. get_inscriptions_in_output ( utxo) ? {
212
212
ensure ! {
213
213
inscriptions. is_empty( ) ,
214
214
"outgoing input {} contains {} inscription(s)" ,
215
- * utxo,
215
+ utxo,
216
216
inscriptions. len( )
217
217
}
218
218
} ;
219
219
220
220
let Some ( pile) = runes. get ( & spaced_rune) else {
221
221
bail ! ( format!(
222
222
"outgoing input {} does not contain rune {}" ,
223
- * utxo, spaced_rune
223
+ utxo, spaced_rune
224
224
) ) ;
225
225
} ;
226
226
@@ -258,7 +258,7 @@ impl Accept {
258
258
ensure ! {
259
259
!unsigned_tx. output. is_empty( ) &&
260
260
outgoing. values( ) . any( |outgoing| {
261
- unsigned_tx. output[ 0 ] . script_pubkey == wallet. utxos( ) . get( & outgoing) . unwrap( ) . script_pubkey
261
+ unsigned_tx. output[ 0 ] . script_pubkey == wallet. utxos( ) . get( outgoing) . unwrap( ) . script_pubkey
262
262
} ) ,
263
263
"unexpected seller address in PSBT"
264
264
}
You can’t perform that action at this time.
0 commit comments