Skip to content

Commit

Permalink
Fix git hooks
Browse files Browse the repository at this point in the history
Signed-off-by: aziz.karabashov <[email protected]>
  • Loading branch information
akarabashov committed Jan 23, 2024
1 parent 9cbe7c3 commit e1e543e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion smart_contracts/.husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

CONTRACTS_DIR="indy-besu/smart_contracts"
CONTRACTS_DIR="smart_contracts"

# Change to the smart contracts directory
cd "$CONTRACTS_DIR" || exit
Expand Down
2 changes: 1 addition & 1 deletion smart_contracts/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

CONTRACTS_DIR="indy-besu/smart_contracts"
CONTRACTS_DIR="smart_contracts"

# Check if git status has any changes in the smart contracts directory
if git status --porcelain | grep -q "$CONTRACTS_DIR"; then
Expand Down
2 changes: 1 addition & 1 deletion smart_contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"demo/account": "yarn run-on-besu demos/account-control.ts",
"demo/upgrade": "yarn run-on-besu demos/upgrade-control.ts",
"genesis/generate": "ts-node scripts/genesis/generate.ts",
"postinstall": "cd ../../ && husky install indy-besu/smart_contracts/.husky",
"postinstall": "cd ../ && husky install smart_contracts/.husky",
"solc-compile": "yarn compile && solc -o compiled-contracts --optimize --bin-runtime --evm-version=constantinople @dk1a=$(pwd)/node_modules/@dk1a @openzeppelin=$(pwd)/node_modules/@openzeppelin ethr-did-registry=$(pwd)/node_modules/ethr-did-registry contracts/**/*.sol node_modules/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"
},
"license": "Apache-2.0",
Expand Down

0 comments on commit e1e543e

Please sign in to comment.