Skip to content

Commit

Permalink
bump @metamask/smart-transactions-controller version (#17120)
Browse files Browse the repository at this point in the history
* bump smart-transactions-controller version

* update policy files

* fix

* rebase cleanup
  • Loading branch information
adonesky1 authored Jan 12, 2023
1 parent 4c8faab commit e0ff039
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 1,383 deletions.
14 changes: 11 additions & 3 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1012,9 +1012,17 @@ export default class MetamaskController extends EventEmitter {
});
this.smartTransactionsController = new SmartTransactionsController(
{
onNetworkStateChange: this.networkController.store.subscribe.bind(
this.networkController.store,
),
onNetworkStateChange: (cb) => {
this.networkController.store.subscribe((networkState) => {
const modifiedNetworkState = {
...networkState,
providerConfig: {
...networkState.provider,
},
};
return cb(modifiedNetworkState);
});
},
getNetwork: this.networkController.getNetworkState.bind(
this.networkController,
),
Expand Down
Loading

0 comments on commit e0ff039

Please sign in to comment.