We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f371b3 commit d2cf1baCopy full SHA for d2cf1ba
nimbus_verified_proxy/rpc/rpc_eth_api.nim
@@ -10,6 +10,7 @@
10
import
11
results,
12
chronicles,
13
+ stew/byteutils,
14
json_rpc/[rpcserver, rpcclient, rpcproxy],
15
eth/common/accounts,
16
web3/eth_api,
@@ -163,6 +164,13 @@ proc installEthApiHandlers*(vp: VerifiedRpcProxy) =
163
164
let callResult = (await vp.evm.call(header, tx, optimisticStateFetch)).valueOr:
165
raise newException(ValueError, error)
166
167
+ if callResult.error.len() > 0:
168
+ raise (ref ApplicationError)(
169
+ code: 3,
170
+ msg: callResult.error,
171
+ data: Opt.some(JsonString("\"" & callResult.output.to0xHex() & "\"")),
172
+ )
173
+
174
return callResult.output
175
176
vp.proxy.rpc("eth_createAccessList") do(
0 commit comments