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

feat: update "bring your own delegations" example #72

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

travis
Copy link
Contributor

@travis travis commented Jan 17, 2024

  1. Add missing importDAG and CarReader imports
  2. Use StoreMemory in example to avoid annoying Error: store cannot be used with did:key:z6xyz, stored principal and passed principal must match error.

I started out trying to do (1) but bumped into the error in (2) after running the test code once. Customers have run into this before and we usually tell them to use StoreMemory - I think that's the right thing in this case anyway so this feels like a win!

I'd like to update this one more time once storacha/w3up#1266 is released so we can get rid of the dependency on @web3-storage/access.

Fixes #63

1) Add missing `importDAG` and `CarReader` imports
2) Use `StoreMemory` in example to avoid annoying `Error: store cannot be used with did:key:z6xyz, stored principal and passed principal must match` error.

I started out trying to do (1) but bumped into the error in (2) after running the test code once. Customers have run into this before and we usually tell them to use `StoreMemory` - I think that's the right thing in this case anyway so this feels like a win!

I'd like to update this one more time once storacha/w3up#1266 is released so we can get rid of the dependency on `@web3-storage/access`.

Fixes #63
Copy link
Contributor

github-actions bot commented Jan 17, 2024

travis added a commit to storacha/w3up that referenced this pull request Jan 17, 2024
@travis travis merged commit 825f702 into main Jan 17, 2024
3 checks passed
@travis travis deleted the fix/upload-example branch January 17, 2024 17:54
travis added a commit to storacha/w3up that referenced this pull request Jan 18, 2024
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

Successfully merging this pull request may close these issues.

Code snippets in upload section should be identical to those shown below
2 participants