Skip to content

Commit

Permalink
Merge pull request #412 from sandeepnRES/main
Browse files Browse the repository at this point in the history
fix(besu): fix web3 verison to 1.10
  • Loading branch information
VRamakrishna authored Jun 20, 2023
2 parents 7df608a + 883659e commit f34bdf9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/network-setups/besu/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
SampleBesuNetwork1
SampleBesuNetwork2
package-lock.json
node_modules
9 changes: 7 additions & 2 deletions tests/network-setups/besu/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
start: start-network1 start-network2

start-network1:
npm-install:
npm install

start-network1: npm-install
bash scripts/setupNetwork.sh 1

start-network2:
start-network2: npm-install
bash scripts/setupNetwork.sh 2

test: test-network1 test-network2
Expand All @@ -23,6 +26,7 @@ clean-network1:
tmux kill-session -t Network1_Node3_session || true
tmux kill-session -t Network1_Node4_session || true
rm -rf SampleBesuNetwork1/
rm -rf node_modules

clean-network2:
tmux kill-session -t Network2_EthSigner_session || true
Expand All @@ -31,3 +35,4 @@ clean-network2:
tmux kill-session -t Network2_Node3_session || true
tmux kill-session -t Network2_Node4_session || true
rm -rf SampleBesuNetwork2/
rm -rf node_modules
22 changes: 22 additions & 0 deletions tests/network-setups/besu/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "besu-testnet",
"version": "1.0.0",
"main": "index.js",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cacti.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hyperledger/cacti/issues"
},
"homepage": "https://github.com/hyperledger/cacti#readme",
"dependencies": {
"web3": "^1.10.0"
}
}
1 change: 0 additions & 1 deletion tests/network-setups/besu/scripts/setupEthSigner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ cp ../artifacts/network$1/createKeyFile.js .
key=`cat $Node/data/key`
sed -i "s/<AccountPrivateKey>/$key/g" createKeyFile.js
touch keys/keyFile_${Node}
npm install web3
node createKeyFile.js > keys/keyFile_${Node}
rm createKeyFile.js
cp ../artifacts/account.toml keys/
Expand Down

0 comments on commit f34bdf9

Please sign in to comment.