|
10 | 10 | import click
|
11 | 11 | from chia.cmds.cmds_util import get_wallet
|
12 | 12 | from chia.rpc.full_node_rpc_client import FullNodeRpcClient
|
13 |
| -from chia.rpc.wallet_request_types import LogIn |
| 13 | +from chia.rpc.wallet_request_types import LogIn, PushTX |
14 | 14 | from chia.rpc.wallet_rpc_client import WalletRpcClient
|
15 | 15 | from chia.types.announcement import Announcement
|
16 | 16 | from chia.types.blockchain_format.program import Program
|
@@ -303,13 +303,17 @@ async def app(
|
303 | 303 | raise Exception("No spend bundle created")
|
304 | 304 |
|
305 | 305 | await wallet_client.push_tx(
|
306 |
| - WalletSpendBundle( |
307 |
| - cat_spend.coin_spends + fees_tx.signed_tx.spend_bundle.coin_spends, |
308 |
| - fees_tx.signed_tx.spend_bundle.aggregated_signature, |
| 306 | + PushTX( |
| 307 | + WalletSpendBundle( |
| 308 | + cat_spend.coin_spends + fees_tx.signed_tx.spend_bundle.coin_spends, |
| 309 | + fees_tx.signed_tx.spend_bundle.aggregated_signature, |
| 310 | + ) |
309 | 311 | )
|
310 | 312 | )
|
311 | 313 | else:
|
312 |
| - await wallet_client.push_tx(WalletSpendBundle(cat_spend.coin_spends, cat_spend.aggregated_signature)) |
| 314 | + await wallet_client.push_tx( |
| 315 | + PushTX(WalletSpendBundle(cat_spend.coin_spends, cat_spend.aggregated_signature)) |
| 316 | + ) |
313 | 317 |
|
314 | 318 | print("Transaction pushed to full node")
|
315 | 319 |
|
@@ -404,13 +408,17 @@ async def app(
|
404 | 408 | raise Exception("No spend bundle created")
|
405 | 409 |
|
406 | 410 | await wallet_client.push_tx(
|
407 |
| - WalletSpendBundle( |
408 |
| - bundle_spends + fees_tx.signed_tx.spend_bundle.coin_spends, |
409 |
| - fees_tx.signed_tx.spend_bundle.aggregated_signature, |
| 411 | + PushTX( |
| 412 | + WalletSpendBundle( |
| 413 | + bundle_spends + fees_tx.signed_tx.spend_bundle.coin_spends, |
| 414 | + fees_tx.signed_tx.spend_bundle.aggregated_signature, |
| 415 | + ) |
410 | 416 | )
|
411 | 417 | )
|
412 | 418 | else:
|
413 |
| - await wallet_client.push_tx(WalletSpendBundle(bundle_spends, cat_spend.aggregated_signature)) |
| 419 | + await wallet_client.push_tx( |
| 420 | + PushTX(WalletSpendBundle(bundle_spends, cat_spend.aggregated_signature)) |
| 421 | + ) |
414 | 422 |
|
415 | 423 | print(
|
416 | 424 | f"Transaction containing {len(bundle_spends)} coin spends "
|
|
0 commit comments