From 2b9e64553e03c7b70e2bacd5d028542289fccc95 Mon Sep 17 00:00:00 2001 From: Arsen Yeremin Date: Thu, 27 Jun 2024 11:54:29 -0700 Subject: [PATCH 1/2] fix: windows docker permissions --- stack | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stack b/stack index f7c22a7a..7e8d769b 100755 --- a/stack +++ b/stack @@ -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 . \ @@ -98,6 +99,7 @@ function go-binding() { docker run --rm \ -v $(pwd)/hardhat:/src \ -w /src \ + --user $(id -u):$(id -g) \ --entrypoint abigen \ lilypad-solc \ "--bin=artifacts/$name.bin" \ From a8d67c315bc3951a921036deffdee3e219b4e616 Mon Sep 17 00:00:00 2001 From: Gorka Date: Tue, 9 Jul 2024 11:14:11 -0300 Subject: [PATCH 2/2] chore: remove unnecessary cmds --- stack | 3 --- 1 file changed, 3 deletions(-) diff --git a/stack b/stack index 7e8d769b..f38bd6ab 100755 --- a/stack +++ b/stack @@ -92,7 +92,6 @@ function go-binding() { "contracts/$name.sol" \ -o artifacts - chown -R $USER hardhat/artifacts mkdir -p hardhat/artifacts/bindings/$pkg # generate the go bindings @@ -106,8 +105,6 @@ function go-binding() { "--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"