Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion substrate/frame/revive/dev-node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod genesis_config_presets {
use alloc::{vec, vec::Vec};
use serde_json::Value;

pub const ENDOWMENT: Balance = 1_001 * DOLLARS;
pub const ENDOWMENT: Balance = 1_000_000_001 * DOLLARS;

fn well_known_accounts() -> Vec<AccountId> {
Sr25519Keyring::well_known()
Expand All @@ -84,6 +84,18 @@ pub mod genesis_config_presets {
array_bytes::hex_n_into_unchecked(
"3cd0a705a2dc65e5b1e1205896baa2be8a07c6e0eeeeeeeeeeeeeeeeeeeeeeee",
),
// subxt_signer::eth::dev::charleth()
array_bytes::hex_n_into_unchecked(
"798d4ba9baf0064ec19eb4f0a1a45785ae9d6dfceeeeeeeeeeeeeeeeeeeeeeee",
),
// subxt_signer::eth::dev::dorothy()
array_bytes::hex_n_into_unchecked(
"773539d4ac0e786233d90a233654ccee26a613d9eeeeeeeeeeeeeeeeeeeeeeee",
),
// subxt_signer::eth::dev::ethan()
array_bytes::hex_n_into_unchecked(
"ff64d3f6efe2317ee2807d223a0bdc4c0c49dfdbeeeeeeeeeeeeeeeeeeeeeeee",
),
])
.collect::<Vec<_>>()
}
Expand Down
12 changes: 11 additions & 1 deletion substrate/frame/revive/rpc/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,17 @@ pub fn run(cmd: CliCommand) -> anyhow::Result<()> {
/// Create the JSON-RPC module.
fn rpc_module(is_dev: bool, client: Client) -> Result<RpcModule<()>, sc_service::Error> {
let eth_api = EthRpcServerImpl::new(client.clone())
.with_accounts(if is_dev { vec![crate::Account::default()] } else { vec![] })
.with_accounts(if is_dev {
vec![
crate::Account::from(subxt_signer::eth::dev::alith()),
crate::Account::from(subxt_signer::eth::dev::baltathar()),
crate::Account::from(subxt_signer::eth::dev::charleth()),
crate::Account::from(subxt_signer::eth::dev::dorothy()),
crate::Account::from(subxt_signer::eth::dev::ethan()),
]
} else {
vec![]
})
.into_rpc();

let health_api = SystemHealthRpcServerImpl::new(client.clone()).into_rpc();
Expand Down
Loading