none
Is there support for structs and mapping in Azure Blockchain Workbench configuration files? RRS feed

  • Question

  • Hi im trying to create a configuration file(.json) for a smart contract that i intend to deploy to azure workbench . as described  https://docs.microsoft.com/en-us/azure/blockchain/workbench/configuration#configuration-file-example. The smart contract i want to deploy makes use of data types like `structs` and `mappings`. For example
    contract MyContract {
        struct Account {
            string firstName;
            string lastName;
            uint created;
            uint updated;
            bool active;
        }
        mapping ( address => Account ) private accountStructs;
    }
    However from the docs https://docs.microsoft.com/en-us/azure/blockchain/workbench/configuration#type, it seems that mapping, and struct are not supported data types. So my questions are
    1. Is there a way to represent struct and mappings in the configuration file?
    2. If the answer to the first question is no, is there plans to support these datatypes(struct, mapping) at a future time? If so when can we expect this feature?
    Thanks
    Thursday, April 11, 2019 9:15 PM

Answers