File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -155,17 +155,8 @@ builder.add_output(
155
155
)
156
156
)
157
157
158
- # Build a finalized transaction body with the change returning to the address we own
159
- tx_body = builder.build(change_address = address)
160
-
161
- # Sign the transaction body hash using the payment signing key
162
- signature = psk.sign(tx_body.hash())
163
-
164
- # Add verification key and the signature to the witness set
165
- vk_witnesses = [VerificationKeyWitness(pvk, signature)]
166
-
167
158
# Create final signed transaction
168
- signed_tx = Transaction(tx_body, TransactionWitnessSet( vkey_witnesses = vk_witnesses) )
159
+ signed_tx = builder.build_and_sign([psk], change_address = address )
169
160
170
161
# Submit signed transaction to the network
171
162
context.submit_tx(signed_tx.to_cbor())
You can’t perform that action at this time.
0 commit comments