mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Include transactions from all networks in state logs (#13599)
This commit is contained in:
parent
2b1256faf4
commit
b42e1f75fa
@ -1325,6 +1325,7 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
createTransactionEventFragment: txController.createTransactionEventFragment.bind(
|
createTransactionEventFragment: txController.createTransactionEventFragment.bind(
|
||||||
txController,
|
txController,
|
||||||
),
|
),
|
||||||
|
getTransactions: txController.getTransactions.bind(txController),
|
||||||
|
|
||||||
// messageManager
|
// messageManager
|
||||||
signMessage: this.signMessage.bind(this),
|
signMessage: this.signMessage.bind(this),
|
||||||
|
@ -183,10 +183,13 @@ function maskObject(object, mask) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setupDebuggingHelpers(store) {
|
function setupDebuggingHelpers(store) {
|
||||||
window.getCleanAppState = function () {
|
window.getCleanAppState = async function () {
|
||||||
const state = clone(store.getState());
|
const state = clone(store.getState());
|
||||||
state.version = global.platform.getVersion();
|
state.version = global.platform.getVersion();
|
||||||
state.browser = window.navigator.userAgent;
|
state.browser = window.navigator.userAgent;
|
||||||
|
state.completeTxList = await actions.getTransactions({
|
||||||
|
filterToCurrentNetwork: false,
|
||||||
|
});
|
||||||
return state;
|
return state;
|
||||||
};
|
};
|
||||||
window.getSentryState = function () {
|
window.getSentryState = function () {
|
||||||
@ -200,8 +203,8 @@ function setupDebuggingHelpers(store) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
window.logStateString = function (cb) {
|
window.logStateString = async function (cb) {
|
||||||
const state = window.getCleanAppState();
|
const state = await window.getCleanAppState();
|
||||||
global.platform.getPlatformInfo((err, platform) => {
|
global.platform.getPlatformInfo((err, platform) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
cb(err);
|
cb(err);
|
||||||
|
@ -751,6 +751,10 @@ export function updateAndApproveTx(txData, dontShowLoadingIndicator) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function getTransactions(filters = {}) {
|
||||||
|
return await promisifiedBackground.getTransactions(filters);
|
||||||
|
}
|
||||||
|
|
||||||
export function completedTx(id) {
|
export function completedTx(id) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user