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

Provide array parameter helper #26

Open
devhawk opened this issue Jun 7, 2022 · 0 comments
Open

Provide array parameter helper #26

devhawk opened this issue Jun 7, 2022 · 0 comments

Comments

@devhawk
Copy link
Contributor

devhawk commented Jun 7, 2022

Information about contract structures is not stored in the contract manifest. As such, the contract interface generator cannot generate typesafe C# declaration for a contract operation such as this:

public struct Royalty
{
    public readonly UInt160 address;
    public readonly BigInteger value;
}

void SetRoyaltiesForContract(UInt160 contract, Royalty[] royalties);

Test framework should have a mechanism to make it easy/feasible for a test author to construct an array of Royalty instances

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant