diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index 0d80778ec..660c3411a 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -223,6 +223,13 @@ func toStackParameter(value interface{}) (sc.Parameter, error) { case native.Role: result.Type = sc.IntegerType result.Value = int64(v) + case keys.PublicKeys: + arr := make([][]byte, 0, len(v)) + for i := range v { + arr = append(arr, v[i].Bytes()) + } + + return toStackParameter(arr) default: return result, errors.Errorf("chain/client: unsupported parameter %v", value) }