-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
CLA Assistant Lite: I have read the CLA Document and I hereby sign the CLA You can retrigger the CLA Action by commenting recheckcla in this Pull Request |
|
This reverts commit 67fc0a9.
config.headers = { | ||
'Access-Control-Allow-Origin': '*', | ||
'Access-Control-Allow-Methods': 'GET', | ||
'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization', |
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.
Required to add CORS rules to debug locally
@@ -161,6 +161,7 @@ | |||
"scripts": { | |||
"start:default": "craco start", | |||
"start": "REACT_APP_DISABLE_TOKEN_WARNING=true yarn start:default", | |||
"start:ssl": "HTTPS=true yarn start", |
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.
SSL is required to debug locally
Works great! However, I'm not sure whether we can fix this (disable Swap button when the safe in the read-only mode). If yes, please let me know if I need to create a separate issue for this. Thanks |
Nice catch! I will try to address this one in a different PR (read only issue). I think we can do something |
@michelbio , regarding
please, review #2499 to see if it fixes it.
Yes, I think, that's mostly an issue with the Gnosis Safe, but we can try to ask if theres ways to improve |
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.
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.
Approving based on my tests/earlier comment.
@alfetopito , seems that the issue you have described is related to #1958 . Correct? |
same issue(s) as @alfetopito otherwise looks good! |
@elena-zh yes, that's the one. |
src/custom/hooks/web3.ts
Outdated
export { useActiveWeb3React, useInactiveListener } from '@src/hooks/web3' | ||
export { useInactiveListener } from '@src/hooks/web3' | ||
|
||
export function useActiveWeb3React() { |
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.
Looks like this function stayed the same as the original one, is there a reason why we re-declared it here instead of just exporting it from the original like we did before?
Yep, other signers need to go to gnosis safe and they don't get this. It would be nice to add. I think is doable just by using the safe API and gettting the latest tx for the connected safe, but anyways, not prio. Good one for a community member. Is there an issue for this one? I would love to add a "help wanted" tag for all that have to do with the Gnosis Safe, i think is nice way to do contributions for the project |
Summary
Basic integration with Gnosis Safe Apps
I just gave it a small try, and since it was a low hanging fruit because we had most of it implemented I went for it (because of our Gnosis Safe implementation using Wallet Connect)
Basically, it does the following:
Not included
#2497 Remove disconnect and change wallet buttons
To Test
TODO: I will add instructions