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

CU-864dz6z38 - Wc: When not sending a signature scope the wallet shou… #2467

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

raulduartep
Copy link
Contributor

…ld use the default (CalledByEntry, not None. None would be if the developer explicitly says None)

What current issue(s) from Trello/Github does this address?

What problem does this PR solve?

How did you solve this problem?

How did you make sure your solution works?

Are there any special changes in the code that we should be aware of?

Is there anything else we should know?

  • Unit tests written?

…ld use the default (CalledByEntry, not None. None would be if the developer explicitly says None)
@@ -427,6 +427,8 @@ const ApproveTransaction = ({
String(request.params.request.params.signers[0]?.scopes)
] === 'Global' && <WarningIcon />}
</div>
) : (
<div>{WITNESS_SCOPE['1']}</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be WITNESS_SCOPE[1]? Why is this a string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the key for this const is a string. if you look on the line 28, the WITNESS_SCOPE is a const.

signer.scopes = signerEntry && signerEntry.scopes
signer.scopes = signerEntry
? signerEntry.scopes
: tx.WitnessScope.CalledByEntry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@comountainclimber comountainclimber merged commit 8077046 into dev Feb 27, 2023
@comountainclimber comountainclimber deleted the CU-864dz6z38 branch September 23, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants