Add a Generic response code for invalid Key
Opened this issue · 0 comments
anighanta commented
Currently most of the keys [PauseKey, AdminKey, KycKey ..] have appropriate response codes.
But an Account's Key set during a cryptoCreate / cryptoUpdate doest have one and we are are reusing BAD_ENCODING
as the response for this.
solution
Use response code INVALID_ADMIN_KEY
to be more meaningful in the above case and add notes in HAPI that an Admin key on the account is it's key.