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

contract keys are not recorded locally within a transaction #969

Closed
bitonic opened this issue May 7, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@bitonic
Copy link
Contributor

commented May 7, 2019

Currently, we do not record contract keys locally to a single update or scenario, e.g. something like this won't work:

  submit alice do
    cid <- create TextKey with
      p = alice
      k = "same-submit-key"
      disclosedTo = []
    mbCid <- lookupByKey @TextKey (alice, "same-submit-key")
    assertMsg ("Some cid == mbCid") (Some cid == mbCid)

I believe this was introduced in a refactoring, given that we have a test making sure that we forget keys within a single scenario, see

-- if we consume an absolute CID within a single
. In any case, we should fix this and add a test.

@bitonic bitonic added this to the Maintenance milestone May 7, 2019

bitonic added a commit that referenced this issue May 7, 2019

bitonic added a commit that referenced this issue May 7, 2019

@bitonic bitonic closed this in bb6f213 May 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.