Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: wallet_revokePermissions #1575

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -327,4 +327,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
Loading