Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 12:06
· 36 commits to main since this release
ecdd187

2.0.0 (2024-09-23)

Bug Fixes

  • Change UpdatePassword to take multiple addresses, roll back on error (#175) (7534c7d)
  • update gnonative API (#179) (ecdd187)

BREAKING CHANGES

  • Change UpdatePassword to take an array of addresses,
    roll back on error.

Explanation: Currently, UpdatePassword takes a single address of the
account to update the password. If a native application wants to change
multiple accounts to the new password, it does a loop to call
UpdatePassword multiple times. But if one of the calls has an error,
the application breaks out of the loop and leaves the Keybase in an
inconsistent state where some passwords are changed but not all. The
application could write some logic to roll back these changes, but it is
better for the Gno Native Kit service to handle this.

This PR has two commits:

  1. Change the UpdatePassword request to take a required array of
    account addresses. (If the application only wants to update the password
    of one account, it is easy to make an array of one address.) In api.go,
    we also change UpdatePassword to roll back to the old password in case
    of error.
  2. In types.ts and GnoNativeApi.ts, change updatePassword to take a
    required array of Uint8Array for the addresses.