stove-labs / tzip-12-tutorial

Other
9 stars 1 forks source link

Error in migrate test #2

Closed frankhillard closed 4 years ago

frankhillard commented 4 years ago

When running

truffle test --network babylonnet

I got error message:

Using network 'babylonnet'.
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

  Contract: multi_asset
Contract deployed at: KT1QHL9KPDqhoYS6KVBbVbkgnqwczVpwW4QY
    ✓ should store a balance of 10 for Alice (559ms)
Contract deployed at: KT1QHL9KPDqhoYS6KVBbVbkgnqwczVpwW4QY
    ✓ should not store any balance for Bob (919ms)
Contract deployed at: KT1QHL9KPDqhoYS6KVBbVbkgnqwczVpwW4QY
    1) should transfer 1 token from Alice to Bob
    2) "after each" hook: after test for "should transfer 1 token from Alice to Bob"

  2 passing (11s)
  2 failing

  1) Contract: multi_asset
       should transfer 1 token from Alice to Bob:
     **Address from_ needs to be equal to the sender**

  2) Contract: multi_asset
       "after each" hook: after test for "should transfer 1 token from Alice to Bob":
     Error: 
Could not connect to your Ethereum client with the following parameters:
    - host       > https://api.tez.ie/rpc/babylonnet
    - port       > undefined
    - network_id > NetXUdfLh6Gm88t
Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle-config.js)

In truffle-config file , I tried to initialize from variable with alice address , but it didn't help

from: "tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb"
maht0rz commented 4 years ago

Hi Frank, please refer to this line in tests for an explanation: https://github.com/stove-labs/tzip-12-tutorial/blob/dev/test/tzip_12_tutorial.js#L11