Skip to content

Commit

Permalink
Fix nonce lock call
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwalsh0 committed Nov 13, 2024
1 parent 5ca3702 commit cafd321
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,11 @@ export default class MetamaskController extends EventEmitter {
});
this.smartTransactionsController = new SmartTransactionsController({
supportedChainIds: getAllowedSmartTransactionsChainIds(),
getNonceLock: this.txController.getNonceLock.bind(this.txController),
getNonceLock: (address) =>
this.txController.getNonceLock(
address,
this.#getGlobalNetworkClientId(),
),
confirmExternalTransaction:
this.txController.confirmExternalTransaction.bind(this.txController),
trackMetaMetricsEvent: this.metaMetricsController.trackEvent.bind(
Expand Down Expand Up @@ -5062,8 +5066,7 @@ export default class MetamaskController extends EventEmitter {
internalAccounts: this.accountsController.listAccounts(),
dappRequest,
networkClientId:
dappRequest?.networkClientId ??
this.networkController.state.selectedNetworkClientId,
dappRequest?.networkClientId ?? this.#getGlobalNetworkClientId(),
selectedAccount: this.accountsController.getAccountByAddress(
transactionParams.from,
),
Expand Down

0 comments on commit cafd321

Please sign in to comment.