Timeline for How to implement indexOf in solidity?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Dec 26, 2022 at 15:59 | history | suggested | CommunityBot | CC BY-SA 4.0 |
corrected syntax error and tested code
|
Dec 25, 2022 at 23:26 | review | Suggested edits | |||
S Dec 26, 2022 at 15:59 | |||||
Mar 8, 2022 at 9:25 | comment | added | Extrange planet |
I think the return must be an int256 instead uint256 because the negative signed number in case of not found ( -1 ) and if (array[i] == searchFor) must be if (arr[i] == searchFor)
|
|
Jan 25, 2022 at 12:35 | vote | accept | leojail | ||
Jan 25, 2022 at 9:08 | history | answered | Lauri Peltonen | CC BY-SA 4.0 |