[Minor] use proper constructor for proxy in fluffy (#759)

This commit is contained in:
KonradStaniec 2021-07-13 15:49:53 +02:00 committed by GitHub
parent 25522b2c24
commit 0fb0fc4680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ proc run(config: PortalConf) {.raises: [CatchableError, Defect].} =
if config.rpcEnabled:
let ta = initTAddress(config.rpcAddress, config.rpcPort)
var rpcHttpServerWithProxy = newRpcHttpProxy([$ta])
var rpcHttpServerWithProxy = newRpcHttpProxy([ta])
rpcHttpServerWithProxy.installEthApiHandlers()
# TODO for now we can only proxy to local node (or remote one without ssl) to make it possible
# to call infura https://github.com/status-im/nim-json-rpc/pull/101 needs to get merged for http client to support https/