From 10f1f30b9c0e959aa9019c25de7687481c04d36b Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Fri, 6 May 2022 11:26:01 +0200 Subject: [PATCH] await for approving allowance function --- test/integration/PublishFlows.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/integration/PublishFlows.test.ts b/test/integration/PublishFlows.test.ts index 63b45d7b..0e4811d3 100644 --- a/test/integration/PublishFlows.test.ts +++ b/test/integration/PublishFlows.test.ts @@ -86,7 +86,13 @@ describe('Publish tests', async () => { nft = new Nft(web3) factory = new NftFactory(addresses.ERC721Factory, web3) - approve(web3, publisherAccount, addresses.MockDAI, addresses.ERC721Factory, '100000') + await approve( + web3, + publisherAccount, + addresses.MockDAI, + addresses.ERC721Factory, + '100000' + ) }) it('should publish a dataset with pool (create NFT + ERC20 + pool) and with Metdata proof', async () => {