You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error was caused due to the following line of code. I'm using solidity version ^0.8.0 and i was getting that error because requests Array is dynamic and we're trying to access it's index that doesn't even exist.
Request storage r = requests[numRequests++];
fix :
Request storage r = requests.push();
Thanks for detailed explanation btw I got stuck for a while finding the correct version of the code.
The text was updated successfully, but these errors were encountered:
The error was caused due to the following line of code. I'm using solidity version ^0.8.0 and i was getting that error because requests Array is dynamic and we're trying to access it's index that doesn't even exist.
fix :
Thanks for detailed explanation btw I got stuck for a while finding the correct version of the code.
The text was updated successfully, but these errors were encountered: