Skip to content

Commit

Permalink
Remove references to Project from token.test.ts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DevRozaDev authored Jun 14, 2024
1 parent 8a1df0c commit a2acfa1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cli/templates/base/test/token.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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)
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit a2acfa1

Please sign in to comment.