Use only > 8.x.x NodeJS version
Install Rust before using this tutorial:
curl https://sh.rustup.rs -sSf | sh
mkdir wasmRustNodeExample
cd wasmRustNodeExample
import { PoolContract, PoolInstance} from "../types/truffle-contracts/index"; | |
// tslint:disable-next-line:no-var-requires | |
const { BN, constants, expectEvent, shouldFail } = require("@openzeppelin/test-helpers"); | |
// tslint:disable-next-line:no-var-requires | |
const should = require("chai").should(); | |
const Pool = artifacts.require("Pool"); | |
contract("Pool", async ([_, owner, wallet1, wallet2, wallet3, wallet4, wallet5]) => { | |
let pool: PoolInstance; |