-
Notifications
You must be signed in to change notification settings - Fork 25
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
Cid should be bytes (marketplace) #1073
base: master
Are you sure you want to change the base?
Conversation
…ace-cid-should-be-bytes
tests/examples.nim
Outdated
@@ -56,7 +56,7 @@ proc example*(_: type StorageRequest): StorageRequest = | |||
maxSlotLoss: 2 # 2 slots can be freed without data considered to be lost | |||
), | |||
content: StorageContent( | |||
cid: "zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob", | |||
cid: "zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob".toBytes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should initialize a cid object with the string (Cid.init("zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob")
) and the access the raw buffer as we do elsewhere (cid.data.buffer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, done.
Related to codex-storage/codex-contracts-eth#214