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.
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.