Quick fix for localhost rpc (#1346)

pull/1348/head
Nikhil Parasaram 5 years ago committed by GitHub
parent ae6a70f802
commit d5f09f6814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      mythril/ethereum/interface/rpc/client.py

@ -57,7 +57,11 @@ class EthJsonRpc(BaseClient):
if self.tls:
scheme += "s"
if self.host:
url = "{}://{}:{}".format(scheme, self.host, self.port)
if self.port:
url = "{}://{}:{}".format(scheme, self.host, self.port)
else:
url = "{}://{}".format(scheme, self.host)
else:
url = "{}".format(scheme)

Loading…
Cancel
Save