Remove unnecessary error check
This commit is contained in:
parent
7d2acd65e8
commit
e8592bb922
|
@ -1,9 +1,7 @@
|
|||
import std/strutils
|
||||
import std/json
|
||||
import ./provider
|
||||
|
||||
proc revertReason*(e: ref ProviderError): string =
|
||||
try:
|
||||
var msg = e.msg
|
||||
const revertPrefixes = @[
|
||||
# hardhat
|
||||
|
@ -16,8 +14,6 @@ proc revertReason*(e: ref ProviderError): string =
|
|||
msg = msg.replace(prefix)
|
||||
msg = msg.replace("\'")
|
||||
return msg
|
||||
except JsonParsingError:
|
||||
return ""
|
||||
|
||||
proc reverts*[T](call: Future[T]): Future[bool] {.async.} =
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue