Vm Exception While Processing Transaction Revert

[Solved] Vm Exception While Processing Transaction Revert | Solidity - Code Explorer | yomemimo.com
Question : VM Exception while processing transaction: revert

Answered by : sheeeev66

// one reason this could happen is when you declair a memory array
// but you don't set it's legnth.
uint[] memory array; // will cause the error
uint[] memory array = new uint[](<lenght>); // where <length> is the array length
// this is because memory arrays can't have a dinamic size

Source : | Last Update : Mon, 20 Jun 22

Answers related to vm exception while processing transaction revert

Code Explorer Popular Question For Solidity