From a2acfa1c578a7645bb0a2b51461cc29fab422ecc Mon Sep 17 00:00:00 2001 From: DevRozaDev <158298065+DevRozaDev@users.noreply.github.com> Date: Fri, 14 Jun 2024 14:41:20 +0200 Subject: [PATCH] Remove references to Project from token.test.ts Citing @_muchen_: >We moved the Project from @alephium/web3 to @alephium/cli in the latest version, and it is not exported from @alephium/cli. You don't need to call Project.build in testing anymore. --- packages/cli/templates/base/test/token.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cli/templates/base/test/token.test.ts b/packages/cli/templates/base/test/token.test.ts index 21c8aebfb..33a424af7 100644 --- a/packages/cli/templates/base/test/token.test.ts +++ b/packages/cli/templates/base/test/token.test.ts @@ -1,4 +1,4 @@ -import { web3, Project, TestContractParams, addressFromContractId, AssetOutput, DUST_AMOUNT, groupOfAddress } from '@alephium/web3' +import { web3, TestContractParams, addressFromContractId, AssetOutput, DUST_AMOUNT, groupOfAddress } from '@alephium/web3' import { expectAssertionError, randomContractId, testAddress, testNodeWallet } from '@alephium/web3-test' import { deployToDevnet } from '@alephium/cli' import { TokenFaucet, TokenFaucetTypes, Withdraw } from '../artifacts/ts' @@ -12,7 +12,6 @@ describe('unit tests', () => { // We initialize the fixture variables before all tests beforeAll(async () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973', undefined, fetch) - await Project.build() testContractId = randomContractId() testTokenId = testContractId testContractAddress = addressFromContractId(testContractId) @@ -104,7 +103,6 @@ describe('unit tests', () => { describe('integration tests', () => { beforeAll(async () => { web3.setCurrentNodeProvider('http://127.0.0.1:22973', undefined, fetch) - await Project.build() }) it('should withdraw on devnet', async () => {