Submitted by glcanvas, also found by fs0c and adriro
Possible to split bio incorrectly, this leads to incorrect display of generated image. This image will be impossible to modify. This might lead to integration problems.
Lets consider tokenURI function of the Bio contract.
Here implemented corner case for some emojis, but current implementation doesnt handle all cases. I suppose handling all cases is redundant, erroneously, complicated and unnecessary.
Lets consider part of tokenURI code in python, this part just rewritten on Python part of Solidity code:
The result is:
In the second line present 31 character.
but correct answer for the second case is:
This happened because Eng flag presented with combination of different emojis, this case isnt handled by contract.
Similar test might be added to the Bio.t.sol contract:
You need to decode them and youll receive the same incorrect result.
Manual audit, Python3
Do not try to implement spec by themselves.
OpenCoreCH (Canto Identity) confirmed
