Skip to content

Commit

Permalink
Makefile: Fix abigen bindings generation
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Mar 7, 2024
1 parent b71167c commit a8f62e5
Show file tree
Hide file tree
Showing 4 changed files with 1,810 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ core/test_segment.go:
core/test_segment.sh core/test_segment.go

eth/contracts/chainlink/AggregatorInterface.go eth/contracts/chainlink/AggregatorV2V3Interface.go eth/contracts/chainlink/AggregatorV3Interface.go:
@for sol_file in eth/contracts/chainlink/*.sol; do \
@set -ex; \
solc --version | grep 0.8.9+commit.e5eed63a; \
for sol_file in eth/contracts/chainlink/*.sol; do \
contract_name=$$(basename "$$sol_file" .sol); \
solc --abi --optimize --overwrite -o $$(dirname "$$sol_file") $$sol_file; \
$(ABIGEN) --abi=$$abi_file --pkg=chainlink --out=$${sol_file%.sol}.go; \
$(ABIGEN) --abi=$${sol_file%.sol}.abi --pkg=chainlink --type=$$contract_name --out=$${sol_file%.sol}.go; \
done

version=$(shell cat VERSION)
Expand Down
Loading

0 comments on commit a8f62e5

Please sign in to comment.