code updates for xrpl.js 2.0 beta 5

This commit is contained in:
mDuo13
2021-10-12 19:02:44 -07:00
parent 1c9516aa68
commit 58a9c25c2b
10 changed files with 123 additions and 391 deletions

View File

@@ -520,12 +520,12 @@ async function generic_full_send(event, tx_json, wallet) {
`<p>${tl("Prepared transaction:")}</p>
<pre><code>${pretty_print(prepared)}</code></pre>`)
const signed = wallet.signTransaction(prepared)
const {tx_blob, hash} = wallet.sign(prepared)
block.find(".output-area").append(
`<p>${tl("Transaction hash:")} <code id="tx_id">${xrpl.computeSignedTransactionHash(signed)}</code></p>`)
`<p>${tl("Transaction hash:")} <code id="tx_id">${hash}</code></p>`)
// TODO: update computeSignedTransactionHash if that changes
await do_submit(block, {"tx_blob": signed}, wait_step_name)
await do_submit(block, {"tx_blob": tx_blob}, wait_step_name)
}
/**