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

@@ -44,13 +44,12 @@ $("#sign-button").click( function(event) {
const wallet = get_wallet(event)
if (!wallet) {return}
signed = wallet.signTransaction(preparedTxJSON)
hash = xrpl.computeSignedTransactionHash(signed) // TODO: update if computeSignedTransactionHash changes
{tx_blob, hash} = wallet.sign(preparedTxJSON)
block.find(".output-area").html(
`<div><strong>Signed Transaction blob:</strong>
<code id='signed-tx-blob' style='overflow-wrap: anywhere; word-wrap: anywhere'
>${signed}</code></div>
>${tx_blob}</code></div>
<div><strong>Identifying hash:</strong> <span id='signed-tx-hash'
>${hash}</span></div>`
)