Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All erc20 tests fail following the example instructions #171

Closed
drewstone opened this issue Feb 19, 2022 · 1 comment
Closed

All erc20 tests fail following the example instructions #171

drewstone opened this issue Feb 19, 2022 · 1 comment

Comments

@drewstone
Copy link

drewstone commented Feb 19, 2022

Node version
14.17.0

Cargo contract version
cargo-contract 0.17.0-unknown-aarch64-macos

Canvas node version
I installed canvas with the following command:

cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --tag v0.1.9 --force --locked

Redspot Version

> npx redspot --version
0.13.3

I cloned the repo commit 9c612e8afc55e684c57a4a53355e514729aa194e and did the following:

  • yarn
  • yarn build
  • cd examples/erc20
  • yarn
  • yarn test

The output was:

  1) ERC20
       Assigns initial balance:
     RedspotPluginError: Instantiation failed
      at /Users/drew/code/redspot/examples/erc20/node_modules/@redspot/patract/contractFactory.js:225:23
      at ContractFactory.instantiateWithCode (node_modules/@redspot/patract/contractFactory.js:221:28)
      at ContractFactory.deploy (node_modules/@redspot/patract/contractFactory.js:272:31)

  2) ERC20
       Transfer adds amount to destination account:
     RedspotPluginError: Instantiation failed
      at /Users/drew/code/redspot/examples/erc20/node_modules/@redspot/patract/contractFactory.js:225:23
      at ContractFactory.instantiateWithCode (node_modules/@redspot/patract/contractFactory.js:221:28)
      at ContractFactory.deploy (node_modules/@redspot/patract/contractFactory.js:272:31)

  3) ERC20
       Transfer emits event:
     RedspotPluginError: Instantiation failed
      at /Users/drew/code/redspot/examples/erc20/node_modules/@redspot/patract/contractFactory.js:225:23
      at ContractFactory.instantiateWithCode (node_modules/@redspot/patract/contractFactory.js:221:28)
      at ContractFactory.deploy (node_modules/@redspot/patract/contractFactory.js:272:31)

  4) ERC20
       Can not transfer above the amount:
     RedspotPluginError: Instantiation failed
      at /Users/drew/code/redspot/examples/erc20/node_modules/@redspot/patract/contractFactory.js:225:23
      at ContractFactory.instantiateWithCode (node_modules/@redspot/patract/contractFactory.js:221:28)
      at ContractFactory.deploy (node_modules/@redspot/patract/contractFactory.js:272:31)

  5) ERC20
       Can not transfer from empty account:
     RedspotPluginError: Instantiation failed
      at /Users/drew/code/redspot/examples/erc20/node_modules/@redspot/patract/contractFactory.js:225:23
      at ContractFactory.instantiateWithCode (node_modules/@redspot/patract/contractFactory.js:221:28)
      at ContractFactory.deploy (node_modules/@redspot/patract/contractFactory.js:272:31)
@drewstone drewstone changed the title All erc20 tests fail following the examples All erc20 tests fail following the example instructions Feb 19, 2022
@ii-ii-ii
Copy link
Member

ii-ii-ii commented Feb 19, 2022

image

 There should be some issues with canvas, and it also won't deploy using polkadot/apps. Canvas may have been abandoned for maintenance, as redspot will no longer support it. use https://github.com/paritytech/substrate-contracts-node instead.

@ii-ii-ii ii-ii-ii mentioned this issue Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants