This pull request resolves issue #57. It has three commits:
Add field HasPassword in SelectAccountResponse and GetActiveAccountResponse. Run make generate.
In api.go, set the HasPassword field in the response to SelectAccountResponse and GetActiveAccountResponse. in Call, return gRPC errors for ErrUnknownAddress and ErrDecryptionFailed. In use-gno.ts, make selectAccount return SelectAccountResponse and make getActiveAccount return GetActiveAccountResponse because these have the hasPassword field. Therefore, in home/index.tsx we update the call to getActiveAccount to check response.key. Finally, add "TODO" comments where the UI needs to have the user enter the password.
Use the latest go.mod replace berty/gno v0.0.3 . This has the bug fix for checking if Call returns ErrWrongPassword.
This pull request resolves issue #57. It has three commits:
HasPassword
inSelectAccountResponse
andGetActiveAccountResponse
. Runmake generate
.HasPassword
field in the response toSelectAccountResponse
andGetActiveAccountResponse
. inCall
, return gRPC errors forErrUnknownAddress
andErrDecryptionFailed
. In use-gno.ts, makeselectAccount
returnSelectAccountResponse
and makegetActiveAccount
returnGetActiveAccountResponse
because these have thehasPassword
field. Therefore, inhome/index.tsx
we update the call togetActiveAccount
to checkresponse.key
. Finally, add "TODO" comments where the UI needs to have the user enter the password.Call
returnsErrWrongPassword
.