mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-24 13:45:49 +00:00
Update desktop wallet for xrpl.js 4.x+
This commit is contained in:
@@ -8,12 +8,12 @@ const prepareTxData = (transactions) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
confirmed: transaction.tx.date,
|
confirmed: transaction.close_time_iso,
|
||||||
type: transaction.tx.TransactionType,
|
type: transaction.tx_json.TransactionType,
|
||||||
from: transaction.tx.Account,
|
from: transaction.tx_json.Account,
|
||||||
to: transaction.tx.Destination ?? "-",
|
to: transaction.tx_json.Destination ?? "-",
|
||||||
value: tx_value,
|
value: tx_value,
|
||||||
hash: transaction.tx.hash
|
hash: transaction.hash
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,9 +99,9 @@ async function verify(accountAddress, client) {
|
|||||||
try {
|
try {
|
||||||
const response = await client.request(request)
|
const response = await client.request(request)
|
||||||
return await checkDestination(response.result.account_data)
|
return await checkDestination(response.result.account_data)
|
||||||
} catch {
|
} catch (err) {
|
||||||
return {
|
return {
|
||||||
domain: 'domain',
|
domain: '',
|
||||||
verified: false
|
verified: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user