What happens in a function where user can supply an uint256 which reads the data from a dynamic array... What happens if index is out of range?
Does transaction revert automatically?
Or do i have to implement additional check: require(myDynamicArray.length > proposalID)
?
function doSomething(uint256 proposalID) {
if(myDynamicArray[proposalID].isActivated) {
//blah blah do something
}
}