In the oo7 Substrate UI, Alice has zero funds

一笑奈何 提交于 2019-12-11 15:15:24

问题


In the Substrate-UI using the Bonds library (oo7), it shows that "Alice" has zero funds on a development chain. I also notice that some accounts are labeled as ed25519 and other are sr25519.

How can I repair this and gain access to the correct Alice?


回答1:


Recently, Substrate changed the default cryptography for accounts and transactions signing from ed25519 to sr25519.

Depending on what combination of software you are using (node, UI, etc...) and what local storage items you have stored (like accounts in your UI) you may end up with some incompatible combination of accounts and cryptography.

So first thing to note:

All the accounts initiated in the genesis configuration, like Alice, use sr25519. As you can see in your screenshot, your browser storage has saved Alice as an ed25519 account from your past usage of the UI.

To repair this, you need to delete the version of Alice you have in your UI, and add a new Alice using the seed //Alice. By default, the new UI which supports sr25519 should automatically use that cryptography to generate new accounts.

Otherwise, if you want to generate new ed25519 accounts using this UI, you can do so by prefixing your seed like this: ed25519://Alice.



来源:https://stackoverflow.com/questions/56050027/in-the-oo7-substrate-ui-alice-has-zero-funds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!