dyne / Zenroom

Embedded no-code VM executing human-like language to manipulate data and process cryptographic operations.
https://dev.zenroom.org
GNU Affero General Public License v3.0
200 stars 64 forks source link

Integer in string array change the encoding of elements after it when printing it #967

Closed matteo-cristino closed 2 days ago

matteo-cristino commented 1 week ago

Running

Given I have a 'integer'
Given I have a 'string'
Given I have a 'string' named 'another_string'

When I create the 'string array' named 'res'
When I move 'string' in 'res'
When I move 'integer' in 'res'
When I move 'another_string' in 'res'

Then print the 'res'

with data

{
  "integer": "5",
  "string": "a",
  "another_string": "b"
}

the result is

{
   "res": [
      "a",
      "5",
      "98"
   ]
}