fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
217 stars 16 forks source link

update web3.storage API in ipfs connector #111

Open jchris opened 1 month ago

jchris commented 1 month ago

This is where the crash happens on page load:

https://github.com/fireproof-storage/fireproof/blob/21f208e0650c8af0c12a46966a31ad220a5daf32/packages/connect-ipfs/src/connect-ipfs-account.ts#L181

The fix is upstream in the call chain and should involve moving to the Account wrapper https://github.com/w3s-project/w3cli/blob/main/account.js#L30

jchris commented 1 month ago

To reproduce:

  1. Clone the reop
  2. pnpm i
  3. pnpm build
  4. pnpm test for good measure

Now run the live test app:

  1. cd packages/fireproof
  2. pnpm serve
  3. Visit http://localhost:8080/todo-ipfs.html and look in the dev console log

I get something like these:

Screenshot 2024-05-03 at 2 26 10 PM Screenshot 2024-05-03 at 2 25 21 PM