Search code examples
arraysstructsoliditycontract

access array struct by index solidity


I would access the struct array by index in the following require statement but i have the errorenter image description here


Solution

  • in the require you are assigning non comparing, try using == instead of =