ecadlabs / token-contract-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deploy example fails with taquito 11.1.0

LeoTheG opened this issue · comments

I'm trying to run the deploy example using the FA1.2 implementation here https://github.com/ecadlabs/token-contract-example/blob/master/contracts/Token.ligo

deploy.js's originate code:

https://github.com/ecadlabs/token-contract-example/blob/master/deploy.js#L10-L22

Running that code with taquito version 11.1.0 returns this error:

Error: {
  "value": {
    "tz1aSkwEot3L2kmUvcoxzjMomb9mvBNuzFK6": {
      "balance": "100",
      "allowances": {}
    }
  },
  "token": {
    "val": {
      "prim": "big_map",
      "annots": [
        "%ledger"
      ],
      "args": [
        {
          "prim": "address"
        },
        {
          "prim": "pair",
          "args": [
            {
              "prim": "map",
              "annots": [
                "%allowances"
              ],
              "args": [
                {
                  "prim": "address"
                },
                {
                  "prim": "nat"
                }
              ]
            },
            {
              "prim": "nat",
              "annots": [
                "%balance"
              ]
            }
          ]
        }
      ]
    },
    "idx": 0
  },
  "name": "BigMapValidationError",
  "message": "[ledger] Value must be a MichelsonMap"
}