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

publicKey is undefined for Address generated by AlgorandClient.account.random() #348

Closed
joe-p opened this issue Dec 6, 2024 · 1 comment · Fixed by #349
Closed

publicKey is undefined for Address generated by AlgorandClient.account.random() #348

joe-p opened this issue Dec 6, 2024 · 1 comment · Fixed by #349
Labels
bug Something isn't working

Comments

@joe-p
Copy link
Contributor

joe-p commented Dec 6, 2024

Subject of the issue

account.random() is generating accounts fine, but the Address has an undefined publicKey which is unexpected since it should always be determined upon construction.

Your environment

8.0.1

Steps to reproduce

  1. algorand.account.random().addr.publicKey

Expected behaviour

UInt8Array of the public key for the address

Actual behaviour

undefined

@neilcampbell
Copy link
Contributor

Thanks for reporting. It looks like the type needs tweaking. We'll get that fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants