Function populateDatastore

  • Populates the datastore with the contracts.

    Parameters

    • contracts: DatastoreContract[]

      The contracts to populate the datastore with.

    Returns Map<Uint8Array, Uint8Array>

    The populated datastore.

    Remarks

    This function is to be used in conjunction with the deployer smart contract. The deployer smart contract expects to have an execution datastore in a specific state. This function populates the datastore according to that expectation.