MrToph / generator-eos

Yeoman generator template for EOS blockchain smart contracts wrapped in Node.js utilities
MIT License
16 stars 2 forks source link

Deploying to testnet #7

Closed marijnbent closed 5 years ago

marijnbent commented 5 years ago

When deploying to testnet, the following error is down.

env NODE_ENV=testnet npm run deploy

> wordtoken@0.0.0-semantically-released deploy /Users/marijnbent/Projects/wordproof-contracts/wordtoken
> npm run compile && node scripts/deploy.js

> wordtoken@0.0.0-semantically-released compile /Users/marijnbent/Projects/wordproof-contracts/wordtoken
> make -C build

[100%] Built target wordtoken.wasm
Loading environment "testnet"
setcode failed: {
  "code": 500,
  "message": "Internal Service Error",
  "error": {
    "code": 3090003,
    "name": "unsatisfied_authorization",
    "what": "Provided keys, permissions, and delays do not satisfy declared authorizations",
    "details": [
      {
        "message": "transaction declares authority '{\"actor\":\"wordtoken111\",\"permission\":\"active\"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys [\"EOS72rQqAN9Tra3W4qXyjeMWRpL4fMW5mFUJo5eVXZMJxzGnxg9ix\"], and a delay max limit of 3888000000 ms",
        "file": "authorization_manager.cpp",
        "line_number": 524,
        "method": "check_authorization"
      }
    ]
  }
}
setabi failed: {
  "code": 500,
  "message": "Internal Service Error",
  "error": {
    "code": 3090003,
    "name": "unsatisfied_authorization",
    "what": "Provided keys, permissions, and delays do not satisfy declared authorizations",
    "details": [
      {
        "message": "transaction declares authority '{\"actor\":\"wordtoken111\",\"permission\":\"active\"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys [\"EOS5PfYbUhZB6FXZQ91M62Ufd4ashvwMmzgQ5ZurBrbx43qDjBwvW\"], and a delay max limit of 3888000000 ms",
        "file": "authorization_manager.cpp",
        "line_number": 524,
        "method": "check_authorization"
      }
    ]
  }
}

The .testnet.env looks like this:

CONTRACT_ACCOUNT=wordtoken111
CONTRACT_PRIVATE_KEY=_activeprivatekeyofwordtoken111_
EOS_HTTP_ENDPOINT=http://jungle2.cryptolions.io:80
EOS_CHAIN_ID=038f4b0fc8ff18a4f0842a8f0564611f6e96e8535901dd45e43ac8691a1c4dca
marijnbent commented 5 years ago

EOS_CHAIN_ID was not up-to-date. After changing it worked correctly. Current Jungle Testnet chain id: e70aaab8997e1dfce58fbfac80cbbb8fecec7b99cf982a9444273cbc64c41473.