Skip to content

Commit

Permalink
Merge pull request #221 from OneKeyHQ/feat/addRevokePermissions
Browse files Browse the repository at this point in the history
feat: support revokePermissions
  • Loading branch information
ByteZhang1024 authored Aug 15, 2024
2 parents d056401 + 217eca1 commit 47062bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/example/components/chains/ethereum/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,12 @@ export default function Example() {
/>
<ApiPayload
title="wallet_revokePermissions"
description="(暂不支持)删除权限"
description="删除权限"
presupposeParams={params.revokePermissions}
onExecute={async () => {
onExecute={async (param) => {
const res = await provider?.request({
'method': 'wallet_revokePermissions',
'params': [],
'params': [JSON.parse(param)],
});
return JSON.stringify(res);
}}
Expand Down
2 changes: 1 addition & 1 deletion packages/example/components/chains/ethereum/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
{
'id': 'revokePermissions',
'name': 'revokePermissions',
'description': '删除权限',
'description': '断开 App 的授权连接',
'value': JSON.stringify({
'eth_accounts': {},
}),
Expand Down

0 comments on commit 47062bf

Please sign in to comment.