mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
code updates for xrpl.js 2.0 beta 5
This commit is contained in:
@@ -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>`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user