Releases: gnolang/gnonative
Releases · gnolang/gnonative
v3.0.0
v2.0.0
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
UpdatePasswordto 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:
- Change the
UpdatePasswordrequest 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 changeUpdatePasswordto roll back to the old password in case
of error. - In types.ts and GnoNativeApi.ts, change
updatePasswordto take a
required array of Uint8Array for the addresses.