Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support variadic types as function args in MsgCall #1611

Open
thehowl opened this issue Feb 1, 2024 · 0 comments
Open

support variadic types as function args in MsgCall #1611

thehowl opened this issue Feb 1, 2024 · 0 comments
Labels
🌟 must have 🌟 Mandatory work needed to complete a project 📦 ⛰️ gno.land Issues or PRs gno.land package related 🌱 feature New update to Gno

Comments

@thehowl
Copy link
Member

thehowl commented Feb 1, 2024

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, " ")
}
@thehowl thehowl added 🌱 feature New update to Gno 📦 ⛰️ gno.land Issues or PRs gno.land package related labels Feb 1, 2024
@thehowl thehowl added this to the 🌟 main.gno.land (wanted) milestone Feb 1, 2024
@zivkovicmilos zivkovicmilos added the 🌟 must have 🌟 Mandatory work needed to complete a project label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌟 must have 🌟 Mandatory work needed to complete a project 📦 ⛰️ gno.land Issues or PRs gno.land package related 🌱 feature New update to Gno
Development

No branches or pull requests

2 participants