When we launch substrate-front-end-template, the first thing one sees is a bunch of dummy accounts with some Balance, and I was under the impression that these accounts were being fetched from Genesis storage of the running chain. However, when I went into chain_spec.rs
file and deleted all accounts, and even renamed some in the testnet_genesis function, I continue to see accounts, albeit with zero balance:
On the console, keyring.getAccounts()
returns these very accounts.
Here's what my ChainSpec looks like :
Ok(ChainSpec::from_genesis(
"Development",
"dev",
ChainType::Development,
move || {
testnet_genesis(
wasm_binary,
vec![authority_keys_from_seed("Foundation")],
get_account_id_from_seed::<sr25519::Public>("Foundation"),
vec![
get_account_id_from_seed::<sr25519::Public>("Foundation"),
],
true,
)
},
// Bootnodes
vec![],
// Telemetry
None,
// Protocol ID
None,
// Properties
Some(props),
// Extensions
None,
))
As you can see, no mention of alice, bob, charlie etc. accounts. I even scoured the entire node folder to find mention of these accounts but to no avail. Could someone tell me how to properly add new accounts, sudo accounts, etc. into my genesis configuration? Thanks.