Skip to content

Commit

Permalink
Merge pull request #1550 from GaloisInc/rpc/quoted-cryptol
Browse files Browse the repository at this point in the history
[RPC] Update with latest cryptol_client, fix types
  • Loading branch information
mergify[bot] authored Jan 4, 2022
2 parents 1e4dd12 + a82497e commit f7a0de1
Show file tree
Hide file tree
Showing 19 changed files with 249 additions and 195 deletions.
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

0 comments on commit f7a0de1

Please sign in to comment.