mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-30 08:33: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.
|
||||
var {{.Type}}MetaData = bind.MetaData{
|
||||
ABI: "{{.InputABI}}",
|
||||
{{if (index $.Libraries .Type) -}}
|
||||
Pattern: "{{index $.Libraries .Type}}",
|
||||
{{end -}}
|
||||
{{if .InputBin -}}
|
||||
Bin: "0x{{.InputBin}}",
|
||||
{{end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue