Unable to assign device on testnet
PodTheCoder opened this issue · comments
Error assigning device on https://wallet.test.network/staking. Error message after clicking Assign Stake:
"Cannot destructure property 'metadata' of '(intermediate value)' as it is null."
![edge_assign_device_bug_testnet - Copy](https://private-user-images.githubusercontent.com/113918164/244871851-0cd486db-7301-416e-a7fc-9dbcc4e7ecaa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyMzQzMDQsIm5iZiI6MTcxOTIzNDAwNCwicGF0aCI6Ii8xMTM5MTgxNjQvMjQ0ODcxODUxLTBjZDQ4NmRiLTczMDEtNDE2ZS1hN2ZjLTlkYmNjNGU3ZWNhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyNFQxMzAwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNjA1YmE4Y2Y3ODIwMzk5MmFjNGViNDZlNjVmY2I4ZGNhYzhlN2VkNDk0ZmIxNThjOWEyNjUwMDIxNzVlZWVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kXlisfDXi55HwqixGUFiR2VQ20HoEqu0q-tJgNz8tVo)
Notably, the device address displays correctly but the url is wrong: https://wallet.test.network/undefined/node/xe_1A662B90eFb6Ee0Cf8836d972B36FA604fc04627
Reproduction:
- Go to https://wallet.test.network/staking
- Click Assign Device next to a stake.
- Enter device code or fill in the fields manually. Both methods give the same error.
- Click
Assign Stake
Testnet example device code:
eyJhZGRyZXNzIjoieGVfMUE2NjJCOTBlRmI2RWUwQ2Y4ODM2ZDk3MkIzNkZBNjA0ZmMwNDYyNyIsInByaXZhdGVLZXkiOiIyNmE2YmQ1OTIwNDM4NThjMjlkMjMwODM0YWFiNWZmZWQ0MjQ5ZWNlMDVkODYzNzhlNTQ0Zjk0ODgyOTk2MTdmIn0
Decoded:
{"address":"xe_1A662B90eFb6Ee0Cf8836d972B36FA604fc04627","privateKey":"26a6bd592043858c29d230834aab5ffed4249ece05d86378e544f9488299617f"}
Mainnet device assignment still working fine.
These bugs emerged in testnet over the weekend as a byproduct of merging #253 - whereby the majority of components were updated correctly over a number of rebases, but the device assignment modal was not, as it was new.
This is now fixed in ff9f7d7 and should not be an issue in mainnet once deployed there.