patractlabs / redspot

Redspot is an Substrate pallet-contracts (ink!) development environment. Compile your contracts and run them on a different networks. Redspot's core forks from Hardhat but changed a lot to suit substrate.
https://redspot.patract.io/
Other
67 stars 22 forks source link

TS2305: Module '"redspot"' has no exported member 'patract'. #159

Closed forgetso closed 2 years ago

forgetso commented 2 years ago

Redspot Version In the latest version of redspot I'm unable to import patract for some reason.

import {network, patract} from "redspot";

TS2305: Module '"redspot"' has no exported member 'patract'.

I've tried building with both:

    "@polkadot/api": "^6.5.2",
    "@polkadot/api-contract": "^6.5.2",
    "@polkadot/types": "^6.5.2",
    "@polkadot/util": "^7.6.1"

and the latest

    "@polkadot/api": "^6.7.2",
    "@polkadot/api-contract": "^6.7.2",
    "@polkadot/types": "^6.7.2",
    "@polkadot/util": "^7.8.2"

Both sets of versions required this fix to build and both fail with the above error.

forgetso commented 2 years ago

This was because I had removed the imports from my redspot.config.ts

Don't delete these!

import "@redspot/patract";
import "@redspot/chai";
import "@redspot/gas-reporter";
import "@redspot/watcher";
import "@redspot/explorer";
import "@redspot/decimals";