Skip to content

Commit

Permalink
fix: Patch updates and NetworkController:state change subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
gambinish committed Nov 15, 2024
1 parent 0a72a62 commit 0bee071
Show file tree
Hide file tree
Showing 5 changed files with 38,485 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ export default class MetamaskController extends EventEmitter {
'AccountsController:selectedEvmAccountChange',
'PreferencesController:stateChange',
'TokenListController:stateChange',
'NetworkController:stateChange',
],
});
this.tokensController = new TokensController({
Expand Down Expand Up @@ -906,6 +907,7 @@ export default class MetamaskController extends EventEmitter {
allowedEvents: [
'PreferencesController:stateChange',
'TokensController:stateChange',
'NetworkController:stateChange',
],
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"attributions:generate": "./development/generate-attributions.sh"
},
"resolutions": {
"@metamask/assets-controllers": "patch:@metamask-previews/assets-controllers@42.0.0-preview-651fe366#./.yarn/patches/@metamask-assets-controllers-npm-42.0.0-57b3d695bb.patch",
"@metamask/assets-controllers": "patch:@metamask/assets-controllers@patch%3A@metamask/assets-controllers@npm%253A44.0.0%23~/.yarn/patches/@metamask-assets-controllers-npm-44.0.0-c223d56176.patch%3A%3Aversion=44.0.0&hash=5a94c2#~/.yarn/patches/@metamask-assets-controllers-patch-9e00573eb4.patch",
"chokidar": "^3.6.0",
"gridplus-sdk/elliptic": "^6.5.7",
"gridplus-sdk/secp256k1": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion ui/hooks/useAccountTotalFiatBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useAccountTotalFiatBalance = (
const nativeCurrency = useSelector(getNativeCurrency);

const loading = false;
const { loading: tokensWithBalances } = useTokenTracker({
const { tokensWithBalances } = useTokenTracker({
chainId: currentChainId,
tokens,
address: account?.address,
Expand Down
Loading

0 comments on commit 0bee071

Please sign in to comment.