Skip to content

Commit

Permalink
[refactor]: pre-commit hook to generate genesis into swarm as peer do…
Browse files Browse the repository at this point in the history
…es not exist

Signed-off-by: Asem-Abdelhady <[email protected]>
  • Loading branch information
Asem-Abdelhady authored and mversic committed Apr 17, 2024
1 parent c352899 commit 30e49da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/pre-commit.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e
cargo +nightly fmt --all -- --check
cargo +nightly lints clippy --workspace --benches --tests --examples --all-features
cargo run --bin kagami -- genesis >configs/peer/genesis.json
cargo run --bin kagami -- genesis --executor-path-in-genesis ./executor.wasm >configs/swarm/genesis.json
cargo run --bin kagami -- schema >docs/source/references/schema.json
git add configs/peer/genesis.json docs/source/references/schema.json
git add configs/swarm/genesis.json docs/source/references/schema.json

0 comments on commit 30e49da

Please sign in to comment.