Description:
A TypeError occurs when attempting to transfer an asset in the test test_transfer_asset. The function transfer expects an argument of type AssetId, but a string is being passed instead.
Steps to Reproduce:
def test_transfer_asset(
GIVEN_minted_asset,
GIVEN_registered_account):
with allure.step(
f'WHEN client transfers an asset'):
(client.submit_executable_only_success(
[iroha.Instruction.
transfer(
5,
GIVEN_minted_asset,
GIVEN_registered_account)]))
Expected Behavior:
The transfer function should successfully convert the string argument to the appropriate AssetId type within the Rust implementation, avoiding the TypeError.
Description: A TypeError occurs when attempting to transfer an asset in the test test_transfer_asset. The function transfer expects an argument of type AssetId, but a string is being passed instead.
Steps to Reproduce:
Expected Behavior: The
transfer
function should successfully convert the string argument to the appropriateAssetId
type within the Rust implementation, avoiding theTypeError
.Actual Behavior:
Code Reference:
Developer's Comment: "I think this API is not good. I should change it to take a string from Python and convert inside Rust to the right type."