mirror of
https://github.com/codex-storage/nim-json-rpc.git
synced 2025-02-23 16:38:22 +00:00
Change inline proc to template
This commit is contained in:
parent
7e1fe1800a
commit
50924d1c12
@ -91,7 +91,7 @@ macro generateCalls: untyped =
|
||||
for callName in ETHEREUM_RPC_CALLS:
|
||||
let nameLit = ident(callName)
|
||||
result.add(quote do:
|
||||
proc `nameLit`*(client: RpcClient, params: JsonNode): Future[Response] {.inline.} = client.call(`callName`, params) # TODO: Back to template
|
||||
template `nameLit`*(client: RpcClient, params: JsonNode): Future[Response] = client.call(`callName`, params) # TODO: Back to template
|
||||
)
|
||||
|
||||
# generate all client ethereum rpc calls
|
||||
|
Loading…
x
Reference in New Issue
Block a user