We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
https://github.com/WebNativeFileSystem/rs-wnfs/blob/0a6d8b626751a4d2c7f848a872a5aee477622a40/crates/wasm/examples/graph/src/blockstore.ts#L23-L28
The return type should be Promise<Uint8Array>. The byte array should be a CID, at least from looking at the rust side:
Promise<Uint8Array>
https://github.com/WebNativeFileSystem/rs-wnfs/blob/0a6d8b626751a4d2c7f848a872a5aee477622a40/crates/wasm/fs/blockstore.rs#L60-L68
I think the fix is just a return cid.bytes on the last line of putBlock.
return cid.bytes
putBlock
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
https://github.com/WebNativeFileSystem/rs-wnfs/blob/0a6d8b626751a4d2c7f848a872a5aee477622a40/crates/wasm/examples/graph/src/blockstore.ts#L23-L28
The return type should be
Promise<Uint8Array>
. The byte array should be a CID, at least from looking at the rust side:https://github.com/WebNativeFileSystem/rs-wnfs/blob/0a6d8b626751a4d2c7f848a872a5aee477622a40/crates/wasm/fs/blockstore.rs#L60-L68
I think the fix is just a
return cid.bytes
on the last line ofputBlock
.The text was updated successfully, but these errors were encountered: