We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 883af3a commit 2ca685aCopy full SHA for 2ca685a
README.md
@@ -155,17 +155,8 @@ builder.add_output(
155
)
156
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
# Create final signed transaction
168
-signed_tx = Transaction(tx_body, TransactionWitnessSet(vkey_witnesses=vk_witnesses))
+signed_tx = builder.build_and_sign([psk], change_address=address)
169
170
# Submit signed transaction to the network
171
context.submit_tx(signed_tx.to_cbor())
0 commit comments