Skip to content

[#285] Add option of KeyAddress transaction with VUnit parameter

Description

Problem: Transfer logic is the same for ContractAddress and KeyAddress, though it should be different

Solution: Add slightly different logic to transfer in case destination hash is KeyAddress. In case of KeyAddress hash transfer requires parameter to be ValueUnit and falls with error in other cases. Issue still requires better error message and codes duplicates to be removed

Related issue(s)

Resolves (except for tests) #285 (closed)

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Stepan Prudnikov

Merge request reports