diff --git a/accounts/abi/abigen/source2.go.tpl b/accounts/abi/abigen/source2.go.tpl index 21bfdf632b..51f306d328 100644 --- a/accounts/abi/abigen/source2.go.tpl +++ b/accounts/abi/abigen/source2.go.tpl @@ -36,7 +36,9 @@ var ( // {{.Type}}MetaData contains all meta data concerning the {{.Type}} contract. var {{.Type}}MetaData = bind.MetaData{ ABI: "{{.InputABI}}", + {{if (index $.Libraries .Type) -}} Pattern: "{{index $.Libraries .Type}}", + {{end -}} {{if .InputBin -}} Bin: "0x{{.InputBin}}", {{end -}}