Skip to content

Commit 1516811

Browse files
committed
correct spendbundle
1 parent 9439bd7 commit 1516811

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/wallet/trade_manager.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,6 @@ async def respond_to_offer(self, file_path: Path) -> bool:
469469

470470
cs_aud = create_spend_for_auditor(auditor, auditor)
471471
coinsols.append(cs_aud)
472-
colour_spend = SpendBundle([cs, cs_eph, cs_aud], aggsig)
473-
wallet = wallets[colour]
474472

475473
spend_bundle = SpendBundle(coinsols, aggsig)
476474
my_tx_records = []
@@ -528,9 +526,9 @@ async def respond_to_offer(self, file_path: Path) -> bool:
528526
incoming=False,
529527
confirmed=False,
530528
sent=uint32(10),
531-
spend_bundle=chia_spend_bundle,
532-
additions=chia_spend_bundle.additions(),
533-
removals=chia_spend_bundle.removals(),
529+
spend_bundle=spend_bundle,
530+
additions=spend_bundle.additions(),
531+
removals=spend_bundle.removals(),
534532
wallet_id=wallet.wallet_info.id,
535533
sent_to=[],
536534
)
@@ -544,9 +542,9 @@ async def respond_to_offer(self, file_path: Path) -> bool:
544542
incoming=True,
545543
confirmed=False,
546544
sent=uint32(10),
547-
spend_bundle=chia_spend_bundle,
548-
additions=chia_spend_bundle.additions(),
549-
removals=chia_spend_bundle.removals(),
545+
spend_bundle=spend_bundle,
546+
additions=spend_bundle.additions(),
547+
removals=spend_bundle.removals(),
550548
wallet_id=wallet.wallet_info.id,
551549
sent_to=[],
552550
)

0 commit comments

Comments
 (0)