Skip to content

Commit

Permalink
chore: remove container after generating bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Jan 8, 2025
1 parent 53edc76 commit 8a856d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/generate-bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function create_binding {
echo ${solc_bin} >data/tmp.bin

rm -f $binding_dir/${contract}/binding.go
docker run -v $(realpath $binding_dir):/home/binding_dir -v .:/home/repo abigen-with-interfaces --bin=/home/repo/data/tmp.bin --abi=/home/repo/data/tmp.abi --pkg=contract${contract} --out=/home/binding_dir/${contract}/binding.go
docker run --rm -v $(realpath $binding_dir):/home/binding_dir -v .:/home/repo abigen-with-interfaces --bin=/home/repo/data/tmp.bin --abi=/home/repo/data/tmp.abi --pkg=contract${contract} --out=/home/binding_dir/${contract}/binding.go
rm -rf data/tmp.abi data/tmp.bin
}

Expand All @@ -46,4 +46,4 @@ echo "Generating bindings for contracts: $contracts"
for contract in $contracts; do
sleep 1 # this is a hack to fix the issue with abigen randomly failing for some contracts
create_binding . "$contract" "$bindings_path"
done
done

0 comments on commit 8a856d1

Please sign in to comment.