In the oo7 Substrate UI, Alice has zero funds

2019-08-20 16:27发布

问题:

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.