fix: show decoded swap details on success-tx view (closes #63)
All checks were successful
check / check (push) Successful in 22s
All checks were successful
check / check (push) Successful in 22s
Carry decoded calldata info (action name, description, token details, amounts, addresses) from the approval confirmation view through to the success-tx view. For swap transactions, this now shows the same decoded details (protocol, action, token symbols, amounts) that appeared on the signing confirmation screen. Changes: - approval.js: store decoded calldata in pendingTxDetails.decoded - txStatus.js: carry decoded through state.viewData, render in success view - index.html: add success-tx-decoded container element
This commit is contained in:
@@ -184,6 +184,15 @@ function showTxApproval(details) {
|
||||
}
|
||||
}
|
||||
|
||||
// Carry decoded calldata info through to success/error views
|
||||
if (decoded) {
|
||||
pendingTxDetails.decoded = {
|
||||
name: decoded.name,
|
||||
description: decoded.description,
|
||||
details: decoded.details,
|
||||
};
|
||||
}
|
||||
|
||||
$("approve-tx-hostname").textContent = details.hostname;
|
||||
$("approve-tx-from").innerHTML = approvalAddressHtml(state.activeAddress);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user