iroha icon indicating copy to clipboard operation
iroha copied to clipboard

`iroha-squash` failed to upgrade `genesis.json` from version 9

Open dima74 opened this issue 1 year ago • 0 comments

Consider genesis.json from iroha v2.0.0-pre-rc.9:

{
  "transactions": [
    {
      "isi": [
        {
          "SetKeyValue": {
            "object_id": {
              "Id": {
                "AssetId": "133.0.0.33-133.0.0.33_1696776342459#contribution#admin@yyy"
              }
            },
            "key": {
              "Name": "ts"
            },
            "value": {
              "U128": 1696776342459
            }
          }
        }
      ]
    }
  ]
}

Try upgrading it to version pre-rc-13 using iroha-squash:

./target/debug/cli upgrade -g genesis9.json -v pre-rc-13

Will result in error:

thread '<unnamed>' panicked at src/lib.rs:331:10:
called `Result::unwrap()` on an `Err` value: Error("data did not match any variant of untagged enum ExpressionDeserializeWrapper", line: 18, column: 11)

It is related to U128 and caused by this issue in serde

dima74 avatar May 03 '24 16:05 dima74