Skip to content

Commit

Permalink
feat: wallet_revokePermissions (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Jun 19, 2024
1 parent 2fb14ed commit 366b0e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@radix-ui/react-select": "1.2.1",
"@radix-ui/react-tabs": "1.0.4",
"@radix-ui/react-tooltip": "1.0.3",
"@rainbow-me/provider": "0.1.0",
"@rainbow-me/provider": "0.1.1",
"@rainbow-me/swaps": "0.19.0",
"@rudderstack/analytics-js-service-worker": "3.0.6",
"@scure/bip39": "1.2.1",
Expand Down Expand Up @@ -328,4 +328,4 @@
"wagmi>@wagmi/connectors>@metamask/sdk>eciesjs>secp256k1": false
}
}
}
}
2 changes: 2 additions & 0 deletions src/entries/background/handlers/handleProviderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ export const handleProviderRequest = ({
SUPPORTED_CHAIN_IDS.includes(chainId) || isCustomChain(chainId),
getActiveSession: ({ host }: { host: string }) =>
appSessionsStore.getState().getActiveSession({ host }),
removeAppSession: ({ host }: { host: string }) =>
appSessionsStore.getState().removeAppSession({ host }),
getChainNativeCurrency: (chainId: number) =>
SUPPORTED_CHAINS.find((chain) => chain.id === Number(chainId))
?.nativeCurrency,
Expand Down
10 changes: 6 additions & 4 deletions src/entries/popup/pages/home/Tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,11 @@ function TokensEmptyState({ depositAddress }: EmptyStateProps) {
borderRadius="16px"
padding="16px"
style={{
boxShadow: `0 0 0 1px ${currentTheme === 'dark'
boxShadow: `0 0 0 1px ${
currentTheme === 'dark'
? 'rgba(245, 248, 255, 0.025)'
: 'rgba(9, 17, 31, 0.03)'
} inset`,
} inset`,
}}
>
<Stack space="12px">
Expand Down Expand Up @@ -576,10 +577,11 @@ function TokensEmptyState({ depositAddress }: EmptyStateProps) {
borderRadius="16px"
padding="16px"
style={{
boxShadow: `0 0 0 1px ${currentTheme === 'dark'
boxShadow: `0 0 0 1px ${
currentTheme === 'dark'
? 'rgba(245, 248, 255, 0.025)'
: 'rgba(9, 17, 31, 0.03)'
} inset`,
} inset`,
}}
>
<Stack space="12px">
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3527,10 +3527,10 @@
dependencies:
"@babel/runtime" "^7.13.10"

"@rainbow-me/[email protected].0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@rainbow-me/provider/-/provider-0.1.0.tgz#7b577604be26f3397085f90b3440aa7528e71e03"
integrity sha512-Omn4GTA92aRMRKj+cT/ixP/aQYCt5WXTQ1ZTBYt4E2B99s68MKlIAKLvqXMtk9KuhMJm5H1rUtjViZ3uuudfvA==
"@rainbow-me/[email protected].1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@rainbow-me/provider/-/provider-0.1.1.tgz#41e786798bc032327d1f5de582eceb14dddb556d"
integrity sha512-VLISTlu3waIByb3D6izLUB/XbNDZ4VKH8L78fwIwyiC2+Npel8ghGiM/xAlzb/CDgAmA7duWplb/mAzCYWg2fw==
dependencies:
"@ethersproject/abstract-provider" "5.7.0"
"@ethersproject/bignumber" "5.7.0"
Expand Down

0 comments on commit 366b0e8

Please sign in to comment.