Skip to content

Commit

Permalink
fix: no permission for this operation
Browse files Browse the repository at this point in the history
  • Loading branch information
dfstool committed Apr 10, 2024
1 parent fb6677b commit 51182e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dfs-metahub-wallet-web-extension",
"version": "1.1.0",
"version": "1.1.2",
"type": "module",
"displayName": "DFS Metahub Wallet",
"author": "dfstool",
Expand Down
3 changes: 3 additions & 0 deletions src/entries/background/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ async function requestSignature(payload: SignaturePayload | ArbitrarySignaturePa
throw SdkError.signatureError('signature_rejected', 'unknow your operation');
}

if (authAccounts.length) {
account = authorizations[0];
}
if (!account) {
throw SdkError.signatureError('signature_rejected', 'you have no permission for this operation');
}
Expand Down

0 comments on commit 51182e5

Please sign in to comment.