mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 16:03:45 +00:00
only populate Pattern field on binding metdata if the bindings were built from a combined-json
This commit is contained in:
parent
6d3e3b2ec5
commit
20bf7bd631
1 changed files with 2 additions and 0 deletions
|
|
@ -36,7 +36,9 @@ var (
|
||||||
// {{.Type}}MetaData contains all meta data concerning the {{.Type}} contract.
|
// {{.Type}}MetaData contains all meta data concerning the {{.Type}} contract.
|
||||||
var {{.Type}}MetaData = bind.MetaData{
|
var {{.Type}}MetaData = bind.MetaData{
|
||||||
ABI: "{{.InputABI}}",
|
ABI: "{{.InputABI}}",
|
||||||
|
{{if (index $.Libraries .Type) -}}
|
||||||
Pattern: "{{index $.Libraries .Type}}",
|
Pattern: "{{index $.Libraries .Type}}",
|
||||||
|
{{end -}}
|
||||||
{{if .InputBin -}}
|
{{if .InputBin -}}
|
||||||
Bin: "0x{{.InputBin}}",
|
Bin: "0x{{.InputBin}}",
|
||||||
{{end -}}
|
{{end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue