Skip to content

Do not support array reassignment #448

@lydiagarms

Description

@lydiagarms

Overview

In Starlight we do no support array reassignment for secret variables. This should be made clear in the documentation and an error message should be output explaining this.

Tasks

Describe the solution you'd like

  • Add that this isn't supported to the Status.md and readme documents.
  • Output a error message for the contract below, explaining that array reassignment isn't supported.

// SPDX-License-Identifier: CC0

pragma solidity ^0.8.0;

contract TokenMetadata{
secret uint256[] encodedTokenMetadata;

function setPrivateMetadata(secret uint256[] calldata inputMetadata) public {
    encodedTokenMetadata = inputMetadata;
}

}

Definition of done

When is this task complete?
It should be clear that array reassignment is not supported in starlight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions