Compare commits
1 Commits
feature/is
...
fix/77-con
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2f7284975 |
@@ -75,6 +75,7 @@ const RESTORABLE_VIEWS = new Set([
|
||||
"settings",
|
||||
"settings-addtoken",
|
||||
"transaction",
|
||||
"confirm-tx",
|
||||
"success-tx",
|
||||
"error-tx",
|
||||
]);
|
||||
@@ -134,6 +135,13 @@ function restoreView() {
|
||||
fallbackView();
|
||||
}
|
||||
break;
|
||||
case "confirm-tx":
|
||||
if (state.viewData && state.viewData.pendingTx) {
|
||||
confirmTx.show(state.viewData.pendingTx);
|
||||
} else {
|
||||
fallbackView();
|
||||
}
|
||||
break;
|
||||
case "success-tx":
|
||||
if (state.viewData && state.viewData.hash) {
|
||||
txStatus.renderSuccess();
|
||||
|
||||
@@ -18,7 +18,7 @@ const {
|
||||
addressDotHtml,
|
||||
escapeHtml,
|
||||
} = require("./helpers");
|
||||
const { state } = require("../../shared/state");
|
||||
const { state, saveState } = require("../../shared/state");
|
||||
const { getSignerForAddress } = require("../../shared/wallet");
|
||||
const { decryptWithPassword } = require("../../shared/vault");
|
||||
const { formatUsd, getPrice } = require("../../shared/prices");
|
||||
@@ -219,6 +219,10 @@ function show(txInfo) {
|
||||
$("confirm-fee-amount").textContent = "Estimating...";
|
||||
showView("confirm-tx");
|
||||
|
||||
// Persist txInfo so the view survives popup close/reopen
|
||||
state.viewData = { pendingTx: txInfo };
|
||||
saveState();
|
||||
|
||||
estimateGas(txInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user