Fix error functions
This commit is contained in:
parent
9c056b85de
commit
aa1970013d
|
@ -67,27 +67,12 @@ type
|
||||||
NotImplementedError* = object of VMError
|
NotImplementedError* = object of VMError
|
||||||
## Not implemented error
|
## Not implemented error
|
||||||
|
|
||||||
#proc makeVMError*: ref VMError =
|
proc makeVMError*: ref VMError =
|
||||||
# var e: ref VMError
|
new(result)
|
||||||
# new(e)
|
result.burnsGas = true
|
||||||
# e.burnsGas = true
|
result.erasesReturnData = true
|
||||||
# e.erasesReturnData = true
|
|
||||||
#var a: ref VMError
|
|
||||||
#new(a)
|
|
||||||
|
|
||||||
# proc makeRevert*(): Revert =
|
proc makeRevert*(): ref Revert =
|
||||||
# result.burnsGas = false
|
new(result)
|
||||||
# result.erasesReturnData = false
|
result.burnsGas = false
|
||||||
|
result.erasesReturnData = false
|
||||||
#var e = VMError()
|
|
||||||
#raise makeVMError()
|
|
||||||
#var e: ref VMError
|
|
||||||
#new(e)
|
|
||||||
#echo e[]
|
|
||||||
#proc x* =
|
|
||||||
# raise newException(VMError, "")
|
|
||||||
#var e = makeVMError()
|
|
||||||
#echo e[]
|
|
||||||
|
|
||||||
|
|
||||||
#x()
|
|
||||||
|
|
Loading…
Reference in New Issue