mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Update accounts/abi/type.go
This commit is contained in:
parent
f9176955a3
commit
dd8b5f1a96
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
|
||||||
typ.T = FunctionTy
|
typ.T = FunctionTy
|
||||||
typ.Size = 24
|
typ.Size = 24
|
||||||
default:
|
default:
|
||||||
if strings.Contains(internalType, "contract") {
|
if strings.HasPrefix(internalType, "contract ") {
|
||||||
typ.Size = 20
|
typ.Size = 20
|
||||||
typ.T = AddressTy
|
typ.T = AddressTy
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue