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

fix(cosmosaccount): return errors from sdk crypto functions #2760

Merged
merged 16 commits into from
Aug 25, 2022

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented Aug 18, 2022

Upgrading cosmos SDK to v0.46.0 changed the signatures of functions in keyring used by cosmosaccount like Address() and GetPubKey() to return errors.

This PR modifies our wrapper functions to also return errors and makes the corresponding changes in the codebase.

Closes #2679

jeronimoalbi
jeronimoalbi previously approved these changes Aug 19, 2022
@jeronimoalbi
Copy link
Member

@aljo242 I believe the Blog Client Tutorial should be updated too.

@aljo242
Copy link
Contributor Author

aljo242 commented Aug 19, 2022

@aljo242 I believe the Blog Client Tutorial should be updated too.

fixed

@github-actions
Copy link
Contributor

github-actions bot commented Aug 19, 2022

Visit the preview URL for this PR (updated for commit baeaf99):

https://ignite-go-docs--pr2760-fix-account-errors-e83az2lg.web.app

(expires Wed, 31 Aug 2022 18:33:13 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

jeronimoalbi
jeronimoalbi previously approved these changes Aug 22, 2022
tbruyelle
tbruyelle previously approved these changes Aug 22, 2022
@aljo242 aljo242 dismissed stale reviews from tbruyelle and jeronimoalbi via b22db28 August 22, 2022 13:17
jeronimoalbi
jeronimoalbi previously approved these changes Aug 22, 2022
@ilgooz
Copy link
Member

ilgooz commented Aug 22, 2022

@tbruyelle maybe this could help with the issue in node cmd?

@aljo242 aljo242 requested a review from jeronimoalbi August 22, 2022 18:08
jeronimoalbi
jeronimoalbi previously approved these changes Aug 23, 2022
@tbruyelle
Copy link
Contributor

@tbruyelle maybe this could help with the issue in node cmd?

how could it be ?
I have noted 2 issues with the node command :

  • timeout when fetching the account sequence to the node, which prints a JSON parsing error : I plan to detect that error and find a workaround in that case (retry?)
  • account sequence mismatch : need more investigation

tbruyelle
tbruyelle previously approved these changes Aug 23, 2022
@aljo242 aljo242 dismissed stale reviews from tbruyelle and jeronimoalbi via 0cd6b1e August 23, 2022 13:35
@aljo242
Copy link
Contributor Author

aljo242 commented Aug 23, 2022

Just added a changelog entry :)

Apologies for re-requesting reviews so much !

@ilgooz ilgooz merged commit f3eb5b8 into develop Aug 25, 2022
@ilgooz ilgooz deleted the fix/account-errors branch August 25, 2022 14:14
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
…#2760)

* return errors

* make corresponding changes

* format

* fix doc

* fix merge conflicts

* actually fix merge

* revert

* format:

* add changelog

Co-authored-by: Jerónimo Albi <[email protected]>
Co-authored-by: İlker G. Öztürk <[email protected]>
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.

Handle errors from keyring.Record.GetPubKey()
4 participants