mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-22 04:28:02 +00:00
Add extra comments
This commit is contained in:
@@ -137,14 +137,27 @@ impl KitchensinkNode {
|
||||
.alloc
|
||||
.entry(signer_address)
|
||||
.or_insert(GenesisAccount::default().with_balance(U256::from(INITIAL_BALANCE)));
|
||||
|
||||
// TODO: This bit of code is to just get some printing in tests and will be removed
|
||||
// once we get CI to pass.
|
||||
println!(
|
||||
"{} => {:?}",
|
||||
signer_address,
|
||||
genesis.alloc.get(&signer_address)
|
||||
)
|
||||
}
|
||||
self.extract_balance_from_genesis_file(&genesis)?
|
||||
};
|
||||
// TODO: This bit of code is to just get some printing in tests and will be removed
|
||||
// once we get CI to pass.
|
||||
println!("{eth_balances:#?}");
|
||||
merged_balances.append(&mut eth_balances);
|
||||
|
||||
chainspec_json["genesis"]["runtimeGenesis"]["patch"]["balances"]["balances"] =
|
||||
json!(merged_balances);
|
||||
|
||||
println!("{}", serde_json::to_string_pretty(&chainspec_json).unwrap());
|
||||
|
||||
serde_json::to_writer_pretty(
|
||||
std::fs::File::create(&template_chainspec_path)?,
|
||||
&chainspec_json,
|
||||
@@ -260,6 +273,7 @@ impl KitchensinkNode {
|
||||
.iter()
|
||||
.try_fold(Vec::new(), |mut vec, (address, acc)| {
|
||||
let substrate_address = Self::eth_to_substrate_address(address);
|
||||
println!("{address} => {substrate_address}");
|
||||
let balance = acc.balance.try_into()?;
|
||||
vec.push((substrate_address, balance));
|
||||
Ok(vec)
|
||||
|
||||
+1
-1
Submodule polkadot-sdk updated: dc3d0e5ab7...c7f9908c2e
Reference in New Issue
Block a user