diff --git a/app/components/ConnectDapp/ApproveTransaction.js b/app/components/ConnectDapp/ApproveTransaction.js index dd01c942c..c218c2e43 100644 --- a/app/components/ConnectDapp/ApproveTransaction.js +++ b/app/components/ConnectDapp/ApproveTransaction.js @@ -416,7 +416,7 @@ const ApproveTransaction = ({ ])} > - {!!request.params.request.params.signers.length && ( + {request.params.request.params.signers.length ? (
{ WITNESS_SCOPE[ @@ -427,6 +427,8 @@ const ApproveTransaction = ({ String(request.params.request.params.signers[0]?.scopes) ] === 'Global' && }
+ ) : ( +
{WITNESS_SCOPE['1']}
)} )} diff --git a/app/context/WalletConnect/helpers.js b/app/context/WalletConnect/helpers.js index 2194deaad..8a7102b66 100644 --- a/app/context/WalletConnect/helpers.js +++ b/app/context/WalletConnect/helpers.js @@ -330,7 +330,9 @@ class N3Helper { account: account.scriptHash, }) - signer.scopes = signerEntry && signerEntry.scopes + signer.scopes = signerEntry + ? signerEntry.scopes + : tx.WitnessScope.CalledByEntry if (signerEntry && signerEntry.allowedContracts) { signer.allowedContracts = signerEntry.allowedContracts.map(ac => Neon.u.HexString.fromHex(ac),