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
eof errors have a different casing than the evm's own errors:
// If value is nonzero and in static mode, throw:
if (runState.interpreter.isStatic() && value !== BIGINT_0) {
trap(ERROR.STATIC_STATE_CHANGE)
}
// If value > 0, charge CALL_VALUE_COST
if (value > BIGINT_0) {
gas += common.param('callValueTransferGas')
}
// Check if the target address > 20 bytes
if (toAddr > EXTCALL_TARGET_MAX) {
trap(EOFError.InvalidExtcallTarget)
}
STATIC_STATE_CHANGE is snake case and InvalidExtcallTarget is camel case. It would be more consistent if they were the same casing.
The text was updated successfully, but these errors were encountered:
eof errors have a different casing than the evm's own errors:
STATIC_STATE_CHANGE
is snake case andInvalidExtcallTarget
is camel case. It would be more consistent if they were the same casing.The text was updated successfully, but these errors were encountered: