-
Notifications
You must be signed in to change notification settings - Fork 5
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
PP 102: convert to ts, apply lint and prettier #16
Conversation
REACT_APP_CONTRACTS_SMART_WALLET_FACTORY=0x03F23ae1917722d5A27a2Ea0Bcc98725a2a2a49a | ||
REACT_APP_CONTRACTS_SMART_WALLET=0x73ec81da0C72DD112e06c09A6ec03B5544d26F05 | ||
REACT_APP_CONTRACTS_RIF_TOKEN=0x726ECC75d5D51356AA4d0a5B648790cC345985ED | ||
REACT_APP_CONTRACTS_RELAY_WORKER=0x69862e277eab81e6a7ea6a7b387c39b2a996e533 |
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.
These changes aren't required and can be reverted
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.
is there a reason to prefer one set of values over the other?
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.
Actually not, these are the ones that are generated from my local env, but it doesn't really matter for me
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.
leave as-is then 👍
@@ -3,14 +3,20 @@ | |||
"version": "0.1.0", | |||
"private": true, | |||
"dependencies": { | |||
"@rsksmart/rif-relay-client": "https://github.com/infuy/rif-relay-client", | |||
"@rsksmart/rif-relay-common": "https://github.com/infuy/rif-relay-common", |
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.
We need to remove these dependencies after fixing the SDK.
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.
agreed
package.json
Outdated
"abi-decoder": "^2.4.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-scripts": "4.0.3", | ||
"relaying-services-sdk": "github:infuy/relaying-services-sdk", | ||
"relaying-services-sdk": "github:antomor/relaying-services-sdk#PP-102/dapp-review", |
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.
this change needs to be reverted after merging the SDK PR
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.
thanks for this technical debt PR 🙌
leaving mostly questions down below; here are some more general comments:
- is it safe to delete the
src/modals/Execute.css
file? - regarding the eslint-disables: do you think we should create a follow up task to fix these, or are the ones left acceptable to keep for the foreseeable future?
- i noticed some changes to the contract json files. aren't these automatically generated? should we maybe skip the linting on these?
- there are some console errors when running the dapp that we've been ignoring up until now, and i am wondering whether we can fix them now (if not, leave them for a later PR). these are:
4.1The stylesheet http://localhost:3000/css/style.css was not loaded because its MIME type, “text/html”, is not “text/css”
when starting the dapp
4.2Uncaught TypeError: document.getElementById(...) is null
when displaying the deploy wallet popup
4.3 a similar error when displaying the transfer popup
finally: i manually compared the diff for each js file turned tsx. i may have missed some of the chnages (specially when code is being moved around) so i tried to complement this with manual testing.
the dapp boots OK and the wallets are deployed correctly (sponsored or not) but i was not able to execute a transfer successfully. i'm getting the verifier rejected in local view call : view call to 'relayCall' reverted in verifier: Internal JSON-RPC error
failure, and process is not defined
when trying again for the same wallet.
could you please verify that you are able to execute transfers successfully? if so i will double check my steps.
thanks
REACT_APP_CONTRACTS_SMART_WALLET_FACTORY=0x03F23ae1917722d5A27a2Ea0Bcc98725a2a2a49a | ||
REACT_APP_CONTRACTS_SMART_WALLET=0x73ec81da0C72DD112e06c09A6ec03B5544d26F05 | ||
REACT_APP_CONTRACTS_RIF_TOKEN=0x726ECC75d5D51356AA4d0a5B648790cC345985ED | ||
REACT_APP_CONTRACTS_RELAY_WORKER=0x69862e277eab81e6a7ea6a7b387c39b2a996e533 |
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.
is there a reason to prefer one set of values over the other?
@@ -3,14 +3,20 @@ | |||
"version": "0.1.0", | |||
"private": true, | |||
"dependencies": { | |||
"@rsksmart/rif-relay-client": "https://github.com/infuy/rif-relay-client", | |||
"@rsksmart/rif-relay-common": "https://github.com/infuy/rif-relay-common", |
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.
agreed
Thanks for reviewing, I know it was huge 🙏🏼 . Down below you find my replies
I noticed this file wasn't used hence I'd prefer to remove it. However yes, it's safe to remove as far as we remove its reference from the
I tried to leave
Are you talking about the files under
I'd glad to tackle these issues after merging this PR, but at the moment I see different errors on the browser console:
However I think they may be related since they appear each time I open a popup (either a deploy or a transfer or a execute)
As discussed, I confirm that I'm able to deploy,transfer and execute successfully. If you still have those errors, let me know and I can investigate on them |
my bad, i thought this was just empty and was suggesting to delete it 😅
sounds GTM 👍
fair enough 🤝
yes, i've seen that one too.
running another check now with the correct contracts code 🙃 |
Thank you for the additional review 🙏🏼 |
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.
running another check now with the correct contracts code 🙃
all seems to be working 👍
What
Why