Skip to content

Commit 1bb7f0d

Browse files
committed
Specify bindings struct name
This is necessary because we have multiple contracts in the same bindings package.
1 parent 91e289e commit 1bb7f0d

File tree

7 files changed

+1255
-1256
lines changed

7 files changed

+1255
-1256
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ SHELL := /usr/bin/env bash
33
lower = $(shell echo '$1' | tr '[:upper:]' '[:lower:]')
44

55
CONTRACTS := $(basename $(notdir $(wildcard ./src/*.sol)))
6-
BINDINGS := $(foreach contract,$(CONTRACTS),$(call lower,$(contract)))
76

87
all: forge gen
98
.PHONY: all forge gen
@@ -14,7 +13,7 @@ forge:
1413
gen:
1514
go run gen/gen.go -config genconfig.toml -base-path ./
1615

17-
$(BINDINGS:%=bindings/%.go): forge
18-
abigen --abi <(jq '.["abi"]' "out/$(basename $(notdir $@)).sol/$(basename $(notdir $@)).json") --pkg bindings --out $@
16+
$(CONTRACTS:%=bindings/%.go): forge
17+
abigen --abi <(jq '.["abi"]' "out/$(basename $(notdir $@)).sol/$(basename $(notdir $@)).json") --pkg bindings --type $(basename $(notdir $@)) --out $@
1918

20-
bindings: $(BINDINGS:%=bindings/%.go)
19+
bindings: $(CONTRACTS:%=bindings/%.go)

bindings/eonkeypublish.go

Lines changed: 99 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/inbox.go

Lines changed: 339 additions & 339 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/keybroadcastcontract.go

Lines changed: 101 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/keyperset.go

Lines changed: 171 additions & 171 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/keypersetmanager.go

Lines changed: 295 additions & 295 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/restrictedpausable.go

Lines changed: 247 additions & 247 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)