Skip to content

support variadic types as function args in MsgCall #1611

@thehowl

Description

@thehowl

From discussion in #1610.

Running maxetx call on a variadic function (like the below) will panic claiming that the slice type is not supported.

I think it is reasonable to support variadic types if the underlying types can be easily parsed by the vm keeper.

package variadic

import "strings"

func Echo(vals ...string) string {
	return strings.Join(vals, " ")
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Other dev assigned

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions