only populate Pattern field on binding metdata if the bindings were built from a combined-json

pull/26782/head
Jared Wasinger 12 hours ago
parent 6d3e3b2ec5
commit 20bf7bd631
  1. 2
      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 -}}

Loading…
Cancel
Save