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

Using different owner and active key #4

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

dafuga
Copy link
Contributor

@dafuga dafuga commented Dec 4, 2024

No description provided.

src/index.ts Outdated
method: 'antelope_getActivePublicKey',
params: {chainId: String(chainId)},
})) as string
return {ownerPublicKey, activePublicKey}
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason you switched from returning a single PublicKey instance to returning an object that contains two strings? Shouldn't it be an object that has two PublicKey instances?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That function doesn't really need to return PublicKey instances based on the way that it's used, but it's probably good practice to do so I'll make the change 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@aaroncox aaroncox merged commit 42dcc61 into master Dec 5, 2024
2 checks passed
@dafuga dafuga deleted the using-different-active-owner-keys branch December 5, 2024 02:07
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.

2 participants