1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove unnecessary await (#16482)

This commit is contained in:
David Walsh 2022-11-16 08:52:35 -06:00 committed by GitHub
parent 0688c3d9ad
commit 54429f531e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -911,7 +911,7 @@ export default class MetamaskController extends EventEmitter {
}
}
const metamaskState = await this.getState();
const metamaskState = this.getState();
if (txReceipt && txReceipt.status === '0x0') {
this.metaMetricsController.trackEvent(
@ -2044,7 +2044,7 @@ export default class MetamaskController extends EventEmitter {
async addCustomNetwork(customRpc, actionId) {
const { chainId, chainName, rpcUrl, ticker, blockExplorerUrl } = customRpc;
await this.preferencesController.addToFrequentRpcList(
this.preferencesController.addToFrequentRpcList(
rpcUrl,
chainId,
ticker,
@ -2760,7 +2760,7 @@ export default class MetamaskController extends EventEmitter {
const allAccounts = await this.keyringController.getAccounts();
this.preferencesController.setAddresses(allAccounts);
// set new account as selected
await this.preferencesController.setSelectedAddress(firstAccount);
this.preferencesController.setSelectedAddress(firstAccount);
}
// ---------------------------------------------------------------------------
@ -3222,7 +3222,7 @@ export default class MetamaskController extends EventEmitter {
customGasSettings,
options,
);
const state = await this.getState();
const state = this.getState();
return state;
}
@ -3245,7 +3245,7 @@ export default class MetamaskController extends EventEmitter {
customGasSettings,
options,
);
const state = await this.getState();
const state = this.getState();
return state;
}