From 46fd2711dce76fa8f7507c63a7a3b48320a0c2fc Mon Sep 17 00:00:00 2001 From: mr-zwets <53938059+mr-zwets@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:30:33 +0100 Subject: [PATCH] enable fullstackNetworkProvider p2sh32 test (#247) --- packages/cashscript/test/e2e/network/FullStack.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cashscript/test/e2e/network/FullStack.test.ts b/packages/cashscript/test/e2e/network/FullStack.test.ts index 221c0c4a..67f9d249 100644 --- a/packages/cashscript/test/e2e/network/FullStack.test.ts +++ b/packages/cashscript/test/e2e/network/FullStack.test.ts @@ -23,8 +23,7 @@ if (!process.env.TESTS_USE_MOCKNET) { const utxos = await p2pkhInstance.getUtxos(); expect(Array.isArray(utxos)).toBe(true); }); - // Note: does not currently support p2sh32 - it.skip('should get the utxos for a p2sh32 contract', async () => { + it('should get the utxos for a p2sh32 contract', async () => { // Note: We instantiate the contract with bobPkh to avoid mempool conflicts with other tests const p2pkhInstance = new Contract(artifact, [bobPkh], { provider, addressType: 'p2sh32' }); console.log(p2pkhInstance.address); @@ -36,6 +35,7 @@ if (!process.env.TESTS_USE_MOCKNET) { describe('send using FullStackNetworkProvider', () => { // Note: We instantiate the contract with bobPkh to avoid mempool conflicts with other tests + // Using p2sh20 address becuase it is funded on mainnet const p2pkhInstance = new Contract(artifact, [bobPkh], { provider, addressType: 'p2sh20' }); console.log(p2pkhInstance.address);