- Move retrieving SIWEBackupData to a util funtion - it will be needed later in the stack
- Move types to proper places on JS side
- Add comment keep types in sync
- Add validation on JS side
- Remove siwe_backup_msg - it's not needed
Details
Details
- Reviewers
varun bartek - Commits
- rCOMM3aff4e035708: [backup-client] refactor `SIWEBackupData` type
Test backup restore for Wallet user
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- land-backup
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/native_rust_library/src/backup.rs | ||
---|---|---|
253–272 ↗ | (On Diff #45498) | Nit: to avoid nested match you could use let-else to unwrap Some(siwe_backup_msg_value) and then the inner match get_siwe_backup_data_from_msg() would not be nested |