kishanraja / MagicSDKDemo

0 stars 0 forks source link

Magic Contract issue #1

Open Ethella opened 3 years ago

Ethella commented 3 years ago

Hey @kishanraja. Jerry from Magic here, I've checked the code and it seems the hex is un-recognizable to the decoder. Did you mention that the contract works on Android?

image

Sorry for the late reply, that this message was sent to the wrong person.

kishanraja commented 3 years ago

@Ethella Thank you for your reply.

Yes, I mention in the mail for working fine in android but it was our original contract so for the demo we have created this getArts contract.

Now, we have checked this contract in android and the result is

[��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������, Green, Orange]

it seems like an extra unwanted character is added at the time of writing. and we don't know why this is happing.

we tried with a new similar contract but still result in same. https://rinkeby.etherscan.io/address/0x1b0a569a77cf53e56dc82d07bd29eb8608924d62#readContract

it adding extra char at prefix.

Screenshot 2021-07-09 at 2 51 19 PM

also one more point from the backend developer: "work fine on remix ide"

Thank You

Ethella commented 3 years ago

Thx for the context, looking into it right now

Ethella commented 3 years ago

@kishanraja Sorry for the late reply. I've looked into the issue and it appears to be an issue in the IOS web3 library when decoding a hex string of array type. We currently don't have the bandwidth to fix the issue. Instead, I would recommend you file this issue with the Boilertalk team. https://github.com/Boilertalk/Web3.swift.

I'll come back again when we have the resource to fix the issue for you. Thank you for your understanding