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

Phase 1 -July - errors #25

Open
ninabreznik opened this issue Jul 6, 2020 · 0 comments
Open

Phase 1 -July - errors #25

ninabreznik opened this issue Jul 6, 2020 · 0 comments

Comments

@ninabreznik
Copy link
Member

ninabreznik commented Jul 6, 2020

Error 3

Update

Date: July 8

Not fixed yet: I added a fix to the lib.rs (created contract_id, inserted contract to GetContractByID and emitted an event). Event now does log, but there's a new error (maybe related to me not fixing this in the correct way)

Screenshot_2020-07-07_03-06-47


Date: July 8

Scenario:
alice([user, publisher])
bob([user, hoster, attestor])
charlie([user, hoster, attestor])
dave([user, hoster, encoder])
eve([user, encoder, attestor])

Error: NewContract event doesn't get emited

Output:
Screenshot_2020-07-07_01-55-03

Error 2

Update

Date: July 8

Fix: Had to change the data type for NoiseKey in lib.rs to H512 and it works. Updates types and also agreggated new types locally. Tried also with Public type but it didn't work. I guess because the value of the NoiseKey is <Buffer 26 6f 1c df f6 c0 e6 98 c9 36 60 8f 50 b4 8d ad a4 53 82 1f 5c 46 9c 9d b5 6a bc 91 a1 47 54 3b, secure: true>

Logs after the fix and a rebuild
Screenshot_2020-07-07_01-39-43


Date: July 8

Scenario:
alice([user, publisher])
bob([user, hoster, attestor])
charlie([user, hoster, attestor])
dave([user, hoster, encoder])
eve([user, encoder, attestor])

Error: Struct: failed on 'noise_key'

Output:
Screenshot_2020-07-06_23-57-35

Error 1

Update:

Date: July 8

Fix: Error was related to the nonce we were passing => need to decide where nonce is created (locally and passed with the tx or on chain).

Screenshot_2020-07-06_23-53-41


Date: July 7

Scenario:
log('start scenario')
alice([user, hoster])
bob([user, hoster])

Output:
Screenshot_2020-07-06_23-20-03


Date: July 7

Scenario:
log('start scenario')
alice([user])
bob([user, publisher])

Output:
Screenshot_2020-07-06_23-24-19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant