Skip to content

Commit

Permalink
Merge pull request ethereum#25 from OffchainLabs/abigen-con-struct-fix
Browse files Browse the repository at this point in the history
Abigen con struct fix
  • Loading branch information
PlasmaPower committed Dec 8, 2021
2 parents 32d69dc + e98b918 commit 8562a6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions accounts/abi/bind/bind.go
Expand Up @@ -88,6 +88,11 @@ func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]
transactIdentifiers = make(map[string]bool)
eventIdentifiers = make(map[string]bool)
)
for _, input := range evmABI.Constructor.Inputs {
if hasStruct(input.Type) {
bindStructType[lang](input.Type, structs)
}
}
for _, original := range evmABI.Methods {
// Normalize the method for capital cases and non-anonymous inputs/outputs
normalized := original
Expand Down

0 comments on commit 8562a6d

Please sign in to comment.