Skip to content

Commit

Permalink
chore: update docker context on hardhat processes (#208)
Browse files Browse the repository at this point in the history
* fix: windows docker permissions

* chore: remove unnecessary cmds

---------

Co-authored-by: Gorka <gorka@aquigorka.com>
  • Loading branch information
arsen3d and AquiGorka authored Jul 9, 2024
1 parent 0ee41dc commit 2500d68
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stack
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function go-binding() {
docker run --rm \
-v $(pwd)/hardhat:/src \
-w /src \
--user $(id -u):$(id -g) \
--entrypoint solc \
lilypad-solc \
--base-path . \
Expand All @@ -91,21 +92,19 @@ function go-binding() {
"contracts/$name.sol" \
-o artifacts

chown -R $USER hardhat/artifacts
mkdir -p hardhat/artifacts/bindings/$pkg

# generate the go bindings
docker run --rm \
-v $(pwd)/hardhat:/src \
-w /src \
--user $(id -u):$(id -g) \
--entrypoint abigen \
lilypad-solc \
"--bin=artifacts/$name.bin" \
"--abi=artifacts/$name.abi" \
"--pkg=$pkg" "--out=artifacts/bindings/$pkg/$pkg.go"

chown -R $USER hardhat/artifacts/bindings/$pkg
chmod 0644 hardhat/artifacts/bindings/$pkg/$pkg.go
cp -r hardhat/artifacts/bindings/$pkg pkg/web3/bindings/$pkg

echo "- Generated go binding hardhat/artifacts/bindings/$pkg/$pkg.go"
Expand Down

0 comments on commit 2500d68

Please sign in to comment.