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
Version: v0.3.3: v0.3.3-70-g32a45ea1
Description: solc + EVM encounters a division by zero error and throws an exception. However, solang + SVM does not throw an error and instead returns 0.
contractTestMulMod {
function triggerError() externalpurereturns (uint256) {
uint256 x =10;
uint256 y =20;
uint256 k =0; // Division by zerouint256 result =mulmod(x, y, k);
return result;
}
}
solc+evm
call to TestMulMod.triggerError errored: Error occurred: revert.
Version: v0.3.3: v0.3.3-70-g32a45ea1
Description: solc + EVM encounters a division by zero error and throws an exception. However, solang + SVM does not throw an error and instead returns 0.
solc+evm
solang+svm
The text was updated successfully, but these errors were encountered: