This differential changes SIWE panel props so that it is possible to pass complete message to sign.
Details
Details
Check that SIWE features are not broken.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/types/siwe-types.js | ||
---|---|---|
131 ↗ | (On Diff #40165) | I am not happy with this but introduction of this field was landed today so I was totally unprepared for this. I will be thinking of better ways to handle this but for now I didn't want to further delay already delayed diffs. |
native/account/registration/connect-ethereum.react.js | ||
---|---|---|
199 ↗ | (On Diff #40165) | Shouldn't we memoize all objects like this? |
native/account/registration/siwe-backup-message-creation.react.js | ||
60–62 ↗ | (On Diff #40165) | Same here |
native/account/siwe-panel.react.js | ||
232 ↗ | (On Diff #40165) | As described in the prior diff, I think this approach is very unsafe |
Comment Actions
- Address comments about memoization.
- Modify SIWE panel to possibly take nonce, statement and issuedAt from external source and skip nonce generation in such a case. This is necessary for SIWE restore
Comment Actions
Minor comments, but there's a lot of them. Would like to review once more before you land
native/account/fullscreen-siwe-panel.react.js | ||
---|---|---|
187 ↗ | (On Diff #40317) | This can be extracted outside of the component |
native/account/registration/connect-ethereum.react.js | ||
193 ↗ | (On Diff #40317) | Same here |
216 ↗ | (On Diff #40317) | capitalize Ethereum |
native/account/registration/connect-farcaster.react.js | ||
68 ↗ | (On Diff #40317) | Same here |
native/account/registration/siwe-backup-message-creation.react.js | ||
53–55 ↗ | (On Diff #40317) | Extract outside component |
native/account/siwe-panel.react.js | ||
50–54 ↗ | (On Diff #40317) | It seems like this would be more accurate. The nonceType field isn't strictly necessary, but may improve readability |
81–88 ↗ | (On Diff #40317) |