Skip to content

Commit

Permalink
Add comment about genesis isi order
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
  • Loading branch information
Arjentix committed Jun 19, 2023
1 parent 883b7cb commit 91ca5de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ impl GenesisNetwork {
.ok_or_else(|| eyre!("Genesis account private key is empty."))?,
)?;
#[cfg(not(test))]
// First instruction should be Validator upgrade.
// This makes possible to grant permissions to users in genesis.
let transactions_iter = std::iter::once(GenesisTransactionBuilder {
isi: vec![UpgradeBox::new(Validator::try_from(raw_block.validator)?).into()],
})
Expand Down

0 comments on commit 91ca5de

Please sign in to comment.