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

Extend accepted parameters #3583

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Extend accepted parameters #3583

merged 2 commits into from
Sep 12, 2024

Commits on Sep 11, 2024

  1. smartcontract: use generics to simplify slice handling

    It's all the same in its essence.
    
    Signed-off-by: Roman Khimov <[email protected]>
    roman-khimov committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    f80f453 View commit details
    Browse the repository at this point in the history
  2. smartcontract: extend slice types accepted by NewParameterFromValue

    It's _very_ annoying to not be able to use []string types properly:
        test invocation failed: unsupported parameter []string
    
    But the same thing can happen to any other slice, so accept slices of every
    basic type we accept above. Reorder tests to match implementation switch as
    well.
    
    Signed-off-by: Roman Khimov <[email protected]>
    roman-khimov committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    8469f97 View commit details
    Browse the repository at this point in the history