-
Notifications
You must be signed in to change notification settings - Fork 193
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
Challenge 5 migration to extension #250
base: challenge-5-state-channels--extension
Are you sure you want to change the base?
Challenge 5 migration to extension #250
Conversation
Houston, we have a problem In this challenge we don't use So, options we have
|
|
||
## Checkpoint 0: 📦 Environment 📚 | ||
|
||
> in the same terminal, start your local network (a blockchain emulator in your computer): |
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.
remove "In the same terminal" part, pls check if you had that in previous extensions too
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.
Fixed!
Yes, it is the same as in some of the previous extensions I will fix it there too!
oh! I think that we can go with the easier solution, asking to open the other user in a private browser window... |
Yes, let's try to do it that way. Update Readme with that info please. Keep in mind we need a new private browser window for every rube, different tabs of one window also doesn't work |
Checking the README I read: What is the limitation to making it work on different browsers or private windows? |
Oh, it uses https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API (grep As I remember it worked only with tabs before, but now I see in the docs: "The Broadcast Channel API allows basic communication between browsing contexts (that is, windows, tabs, frames, or iframes) and workers on the same origin." So probably windows also works. Will try it tomorrow |
Tried fast check, doesn't work (. Will play with it tomorrow Also, this challenge uses |
I tried the broadcast channel with the incognito window and it's not working :-( We will need to go with one of the other options:
Maybe we can try option 1. Another option is to remove the broadcast channel and use a backend for the messages. But adding the sessionStorage to the burner wallet may be something useful for other projects too. @rin-st what do you think? |
Yes, I'll try to update it later today |
Great! Thanks! I will try to remove the ethers dependency, it seems like the missing function from viem is already implemented https://viem.sh/docs/utilities/parseSignature |
Looking at the burner wallet code from the previous challenge 5
Removed viem dependency using hexToSignature (we should update it to use parseSignature when updating viem). Added humanize-duration dependency too and fixed some minor code comments. |
I think its a nice feature to have and we can add it, since changes are not that much. Thanks @rin-st for the burner-connector PR 🙌 |
Great! But why not to use We updated add this line to rainbowkitBurnerWallet.useSessionStorage = true; |
I think the viem version we are using does not have parseSignature yet. I tried it before changing to hexToSignature and the method does not exist.
Great!! Thanks!! Also, after that merge, we need to add this to this challenge READMESs to make it work
I will add this line to the READMEs! |
@rin-st Added the rainbowkitBurnerWallet config to READMEs! The PR you mentioned was merged, but now we have to wait to get this update on create-eth, right? |
It works for me 🤷 . Added it bb5cdf9, please try on your side
Yes, sorry :) |
Working fine! Thanks!! |
Challenge 5 migrated to an extension following #234
Install from create-eth repo with:
closes #246