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

Show tx signer #133

Merged
merged 3 commits into from
Nov 22, 2024
Merged

Show tx signer #133

merged 3 commits into from
Nov 22, 2024

Conversation

selankon
Copy link
Collaborator

@selankon selankon commented Nov 20, 2024

Fix #116

image

Copy link

github-actions bot commented Nov 20, 2024

@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 09:57 Inactive
Copy link

github-actions bot commented Nov 20, 2024

@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 09:57 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 10:02 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 10:02 Inactive
Copy link
Member

@emmdim emmdim left a comment

Choose a reason for hiding this comment

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

LGTM

@elboletaire
Copy link
Member

But... the signer is not the account, is it? I don't see how useful is this, since copying a signer does not allow to search an account by such address (?)

@emmdim
Copy link
Member

emmdim commented Nov 20, 2024

But... the signer is not the account, is it? I don't see how useful is this, since copying a signer does not allow to search an account by such address (?)

At least in the raw of the vocdoni-node the name used for the account is signer.
Example:
https://dev.explorer.vote/transactions/660284/0/1

Is that what you mean?

@elboletaire
Copy link
Member

But... the signer is not the account, is it? I don't see how useful is this, since copying a signer does not allow to search an account by such address (?)

At least in the raw of the vocdoni-node the name used for the account is signer. Example: dev.explorer.vote/transactions/660284/0/1

Is that what you mean?

What I mean is... what is that signer useful for if it's not the actual account?
imatge

@elboletaire
Copy link
Member

elboletaire commented Nov 20, 2024

I approved the changes, but my confusion with the signer comes due to the create_account transactions, where the signer is the account of the wallet who created such account.

But in these transactions, an account field is added, which shows the account recently created. May be a good idea to show it somehow, although may be done in a different PR (as you wish @selankon).

Copy link
Member

@elboletaire elboletaire left a comment

Choose a reason for hiding this comment

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

I've changed my mind. You're pointing to a PR which added a new field account, but you're using a field named signer. You should do a ternary operation, and show the account by default, or the signer in case there's no account.

Never mind that last thought... I got really confused due to the vocdoni-node PR related to this one and different naming issues.

The only required change in this PR is not naming it signer, since they'll be always existing accounts and naming it signer adds confusion (since we now can name them accounts, organizations and adding signer would complicate things for end-users [as it did to me today, damn dyslexics]).

@selankon
Copy link
Collaborator Author

The only required change in this PR is not naming it signer, since they'll be always existing accounts and naming it signer adds confusion (since we now can name them accounts, organizations and adding signer would complicate things for end-users [as it did to me today, damn dyslexics]).

So which name should I use? Account?

@elboletaire
Copy link
Member

So which name should I use? Account?

Yeah, @emmdim agreed

@elboletaire elboletaire merged commit 8c80e66 into main Nov 22, 2024
3 checks passed
@elboletaire elboletaire deleted the f/show-tx-signer branch November 22, 2024 12:13
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.

Show transaction signer account
3 participants