Closed hboon closed 5 years ago
Will handle it. To save you a bit of time in the future, I can understand the issue if you just say the title.
Since it's not TokenScript's task to make sure the address actually exists, I'll just implement case-ignore, close this one, file a new one about EIP55 to work on perfecting it in the future.
Solved by adding a case-ignore flag, both works.
https://repo.tokenscript.org/2019/05/0x4A60C0BF93b2b3a3D20720a773E5Da8C80C427ac https://repo.tokenscript.org/2019/05/0x4A60C0BF93b2b3a3D20720a773E5Da8C80C427AC
On second thought, maybe we don't need to enforce EIP55, because it's not an EIP55 scenario (where user copy&paste might get the address wrong or accidentally replaced). This is a machine-to-machine conversation. On the long run, the Makefile in the repo should verify the existence of the smart-contracts being described (not just the syntax).
I skipped Pull-Request because you will need to test by setting up apache2 otherwise.
The current implementation seems to just read the addresses from the TokenScript file and expects the address to be provided in the URL to match exactly. This makes it impossible for the TokenScript client to construct a URL that will predictably fetch the file correctly.
Given the TokenScript for FIFA:
On the other hand, with EntryToken:
We have:
We should either:
A) Expect to be liberal about casing in the URL, or B) Enforce all lowercase, or C) Enforce EIP55