I’m using the online contract editor for some quick prototyping and bumped into a problem. When I try to pass an address as an argument at Call Function then I get the following error: {“data”:{“reason”:“Type errors\nCannot unify address\n and bytes(32)\nwhen checking the application at line 40, column 34 of\n transfer : (string, address) => ()\nto arguments\n “12345” : string\n #c7ab21190d90ce6901c784964864c5885259d23d25a7e6d3723787285c26e933 :\n bytes(32)\n”}}.
The arguments I’m providing are: 12345,ak_2WwGGLTB48pPoSc5hzzDrCxvWjhRnx34YJtwxGMYvTj6PSqHxR
What am I doing wrong?
2 Likes
@philipp.chain and @pegah.chain can help you here, i’ve forwarded your request.
1 Like
From the error message it looks like the online contract editor is trying to be clever. It has turned 12345
into "12345"
which is good since it should be a string. But it has also turned ak_2Ww...
into #c7ab...
which is not good since that is a byte array rather than an address
1 Like
Hey @zkvonsnarkenstein.chain,
We will investigate and come back to you.
Thanks,
Martin
1 Like
Hey,
We have found and solved the issue, we will release new version of the tool.
I will keep you posted when this happens.
Martin
2 Likes
Great! Thanks a lot for the help.
1 Like
@zkvonsnarkenstein.chain We have released new version of the contracts Aepp. Can you please check if your issues is resolved? It seems working on our side.
Best,
Martin