Skip to content

Commit

Permalink
chore: bump @metamask/ppom-validator to 0.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Oct 24, 2024
1 parent 80fd7fc commit 5702bf5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
23 changes: 11 additions & 12 deletions app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ class Engine {

return Boolean(
hasProperty(showIncomingTransactions, currentChainId) &&
showIncomingTransactions?.[currentHexChainId],
showIncomingTransactions?.[currentHexChainId],
);
},
updateTransactions: true,
Expand Down Expand Up @@ -1596,7 +1596,6 @@ class Engine {
).configuration.chainId,
blockaidPublicKey: process.env.BLOCKAID_PUBLIC_KEY as string,
cdnBaseUrl: process.env.BLOCKAID_FILE_CDN as string,
// @ts-expect-error TODO: Resolve/patch mismatch between base-controller versions. Before: never, never. Now: string, string, which expects 3rd and 4th args to be informed for restrictedControllerMessengers
messenger: this.controllerMessenger.getRestricted({
name: 'PPOMController',
allowedActions: ['NetworkController:getNetworkClientById'],
Expand Down Expand Up @@ -1678,7 +1677,7 @@ class Engine {
(state: NetworkState) => {
if (
state.networksMetadata[state.selectedNetworkClientId].status ===
NetworkStatus.Available &&
NetworkStatus.Available &&
networkController.getNetworkClientById(
networkController?.state.selectedNetworkClientId,
).configuration.chainId !== currentChainId
Expand All @@ -1703,9 +1702,10 @@ class Engine {
} catch (error) {
console.error(
error,
`Network ID not changed, current chainId: ${networkController.getNetworkClientById(
networkController?.state.selectedNetworkClientId,
).configuration.chainId
`Network ID not changed, current chainId: ${
networkController.getNetworkClientById(
networkController?.state.selectedNetworkClientId,
).configuration.chainId
}`,
);
}
Expand Down Expand Up @@ -1834,7 +1834,7 @@ class Engine {
const decimalsToShow = (currentCurrency === 'usd' && 2) || undefined;
if (
accountsByChainId?.[toHexadecimal(chainId)]?.[
selectSelectedInternalAccountChecksummedAddress
selectSelectedInternalAccountChecksummedAddress
]
) {
ethFiat = weiToFiatNumber(
Expand Down Expand Up @@ -1866,9 +1866,9 @@ class Engine {
item.balance ||
(item.address in tokenBalances
? renderFromTokenMinimalUnit(
tokenBalances[item.address],
item.decimals,
)
tokenBalances[item.address],
item.decimals,
)
: undefined);
const tokenBalanceFiat = balanceToFiatNumber(
// TODO: Fix this by handling or eliminating the undefined case
Expand Down Expand Up @@ -1922,7 +1922,6 @@ class Engine {
return snapKeyring;
};


/**
* Removes an account from state / storage.
*
Expand Down Expand Up @@ -2299,6 +2298,6 @@ export default {
removeAccount: async (address: string) => {
assertEngineExists(instance);
return await instance.removeAccount(address);
}
},
///: END:ONLY_INCLUDE_IF
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"@metamask/permission-controller": "^11.0.0",
"@metamask/phishing-controller": "^12.0.3",
"@metamask/post-message-stream": "^8.0.0",
"@metamask/ppom-validator": "0.35.0",
"@metamask/ppom-validator": "0.35.1",
"@metamask/preferences-controller": "^11.0.0",
"@metamask/profile-sync-controller": "^0.9.7",
"@metamask/react-native-actionsheet": "2.4.2",
Expand Down
17 changes: 4 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5166,14 +5166,13 @@
"@metamask/utils" "^9.0.0"
readable-stream "3.6.2"

"@metamask/ppom-validator@0.35.0":
version "0.35.0"
resolved "https://registry.yarnpkg.com/@metamask/ppom-validator/-/ppom-validator-0.35.0.tgz#f79a379dbf45a7d040f264c52d69c11cf528a01a"
integrity sha512-9mGNbmRS9/DhQIqpclzoC784y6PpFOVEIKyAEyqDwcdBeWKSzqLOkkd+cM5UxyHASO0ahA3FPtzDobLy3WsIuw==
"@metamask/ppom-validator@0.35.1":
version "0.35.1"
resolved "https://registry.yarnpkg.com/@metamask/ppom-validator/-/ppom-validator-0.35.1.tgz#9ccece28f9f8947caef575849ef41f2ca15baa13"
integrity sha512-iaJRIFUXNBeuQwy+6B10mkPJDAmhvSyu5PAehSNSj+J2Q7Vy3AJe9GWI5t62j3IeDnwuny+Av+x/T+iI5D/b8w==
dependencies:
"@metamask/base-controller" "^7.0.1"
"@metamask/controller-utils" "^11.3.0"
"@metamask/rpc-errors" "^6.4.0"
"@metamask/utils" "^9.2.1"
await-semaphore "^0.1.3"
crypto-js "^4.2.0"
Expand Down Expand Up @@ -5307,14 +5306,6 @@
"@metamask/utils" "^9.0.0"
fast-safe-stringify "^2.0.6"

"@metamask/rpc-errors@^6.4.0":
version "6.4.0"
resolved "https://registry.yarnpkg.com/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz#a7ce01c06c9a347ab853e55818ac5654a73bd006"
integrity sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==
dependencies:
"@metamask/utils" "^9.0.0"
fast-safe-stringify "^2.0.6"

"@metamask/safe-event-emitter@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz#af577b477c683fad17c619a78208cede06f9605c"
Expand Down

0 comments on commit 5702bf5

Please sign in to comment.