Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Struct and array parameters in smart contracts #4102

Open
drmathias opened this issue Dec 11, 2019 · 0 comments
Open

Struct and array parameters in smart contracts #4102

drmathias opened this issue Dec 11, 2019 · 0 comments

Comments

@drmathias
Copy link
Contributor

drmathias commented Dec 11, 2019

I have a scenario where I am passing structs and struct arrays to a smart contract. At the moment, in my contract, I'm deserializing from a byte array inside the method.

In my service, I am initializing my struct type and then serializing it, so that it can be passed in a call to the contract. Ideally I wouldn't want to have to handle serialization, instead smart contracts could support struct and array parameters, which are deserialized in the call.

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

No branches or pull requests

1 participant