RuntimeError when finalizing account update metaoperation

stacktrace

When trying to finalize account update metaoperation in clive I enountered runtime error. This is an error from cpp layer. Should be handled properly and say that the format of the key is wrong.

Happened when trying to finalize after editing one entry from STM56UB7G2kab5br1eVNVxNfKcwTA1c5pHksZ8WAU52qM8J2538Uq to STM56UB7G2kab5br1eVNVxNfKcwTA1c5pHksZ8WAU52qM8J2538Uw

MRE by @mzebrak:

import asyncio

from wax import create_hive_chain
from wax.complex_operations.account_update import AccountAuthorityUpdateOperation


async def main() -> None:
    wax_chain = create_hive_chain()
    wax_tx = wax_chain.create_transaction_with_tapos(tapos_block_id='0')

    wax_account_authority_update_op = await AccountAuthorityUpdateOperation.create_for(wax_chain, 'guest4test1')
    wax_account_authority_update_op.roles.memo.set("STM56UB7G2kab5br1eVNVxNfKcwTA1c5pHksZ8WAU52qM8J2538Uw")  # causes RuntimeError: correct is STM56UB7G2kab5br1eVNVxNfKcwTA1c5pHksZ8WAU52qM8J2538Uq
    wax_tx.push_operation(list(wax_account_authority_update_op.finalize(wax_chain))[0])  # Error
    print(wax_tx.to_api_json())


if __name__ == "__main__":
    asyncio.run(main())
Edited by Mateusz Kudela