File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ proc jsonHeaders: seq[(string, string)] =
62
62
63
63
proc new* (_: type JsonRpcProvider,
64
64
url= defaultUrl,
65
- pollingInterval= defaultPollingInterval): JsonRpcProvider =
65
+ pollingInterval= defaultPollingInterval): JsonRpcProvider {.raises: [JsonRpcProviderError]. } =
66
66
var initialized: Future[void ]
67
67
var client: RpcClient
68
68
var subscriptions: JsonRpcSubscriptions
@@ -93,7 +93,7 @@ proc new*(_: type JsonRpcProvider,
93
93
94
94
convertError:
95
95
initialized = initialize()
96
- JsonRpcProvider(client: awaitClient(), subscriptions: awaitSubscriptions())
96
+ return JsonRpcProvider(client: awaitClient(), subscriptions: awaitSubscriptions())
97
97
98
98
proc send* (provider: JsonRpcProvider,
99
99
call: string ,
You can’t perform that action at this time.
0 commit comments