Skip to content

Commit

Permalink
accounts/abi/bind: fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Mar 31, 2021
1 parent 0833a8e commit 8319056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/bind/template.go
Expand Up @@ -139,7 +139,7 @@ var (
// Deploy{{.Type}} deploys a new Ethereum contract, binding an instance of {{.Type}} to it.
func Deploy{{.Type}}(auth *bind.TransactOpts, backend bind.ContractBackend {{range .Constructor.Inputs}}, {{.Name}} {{bindtype .Type $structs}}{{end}}) (common.Address, *types.Transaction, *{{.Type}}, error) {
if {{.Type}}ParsedABI != nil {
if {{.Type}}ParsedABI == nil {
parsed, err := abi.JSON(strings.NewReader({{.Type}}ABI))
if err != nil {
return common.Address{}, nil, nil, err
Expand Down

0 comments on commit 8319056

Please sign in to comment.