Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC] Update with latest cryptol_client, fix types #1550

Merged
merged 12 commits into from
Jan 4, 2022
44 changes: 22 additions & 22 deletions saw-remote-api/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions saw-remote-api/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ include = [
python = "^3.8"
requests = "^2.25.1"
BitVector = "^3.4.9"
cryptol = "2.12.0" # { path = "../../deps/cryptol/cryptol-remote-api/python/", develop = true }
argo-client = "~0.0.6"
cryptol = "2.12.2" # { path = "../../deps/cryptol/cryptol-remote-api/python/", develop = true }
argo-client = "0.0.10"

[tool.poetry.dev-dependencies]
mypy = "^0.812"
Expand Down
3 changes: 1 addition & 2 deletions saw-remote-api/python/saw_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,7 @@ def prove(goal: cryptoltypes.CryptolJSON,
argument.
"""
conn = __get_designated_connection()
res = conn.prove(cryptoltypes.to_cryptol(goal),
proof_script.to_json()).result()
res = conn.prove(goal, proof_script.to_json()).result()
pr = ProofResult()
if res['status'] == 'valid':
pr.valid = True
Expand Down
2 changes: 1 addition & 1 deletion saw-remote-api/python/saw_client/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __init__(
goal : cryptoltypes.CryptolJSON,
script : ProofScript,
timeout : Optional[float]) -> None:
params = {'goal': goal,
params = {'goal': cryptoltypes.to_cryptol(goal),
'script': script}
super(Prove, self).__init__('SAW/prove', params, connection, timeout=timeout)

Expand Down
Loading