accounts/abi: tuple support (#18406)

This commit is contained in:
gary rong
2019-01-10 16:59:37 +08:00
committed by Guillaume Ballet
parent 6df3e4eeb0
commit 7ca40306af
9 changed files with 1003 additions and 393 deletions

View File

@ -58,13 +58,11 @@ func (abi ABI) Pack(name string, args ...interface{}) ([]byte, error) {
return nil, err
}
return arguments, nil
}
method, exist := abi.Methods[name]
if !exist {
return nil, fmt.Errorf("method '%s' not found", name)
}
arguments, err := method.Inputs.Pack(args...)
if err != nil {
return nil, err