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 <asemshawkey@gmail.com>
  • Loading branch information
Asem-Abdelhady committed Apr 15, 2024
1 parent f6870df commit 66edcba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/pre-commit.sample
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 66edcba

Please sign in to comment.