From 3f8600ce5d5eb14b693deaac0cd48b5c8b3ee65d Mon Sep 17 00:00:00 2001 From: Bernardo Ramos Date: Tue, 22 Oct 2024 00:35:37 -0300 Subject: [PATCH 1/3] test: use node for hardfork 4 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8518e70..5a31bbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: - name: Start Docker services run: | - docker run -d -p 7845:7845 --name aergosvr aergo/node:2.2 aergosvr --config /aergo/testmode.toml + docker run -d -p 7845:7845 --name aergosvr aergo/node:2.6.0 aergosvr --config /aergo/testmode.toml - name: Run Lerna pre-scripts run: | From ea36c9575518df571fbc396ab7869e18322a7e5e Mon Sep 17 00:00:00 2001 From: Bernardo Ramos Date: Tue, 22 Oct 2024 01:11:39 -0300 Subject: [PATCH 2/3] attempt to fix tests --- packages/wallet/test/e2e_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/wallet/test/e2e_test.ts b/packages/wallet/test/e2e_test.ts index 6980e81..5298783 100644 --- a/packages/wallet/test/e2e_test.ts +++ b/packages/wallet/test/e2e_test.ts @@ -283,7 +283,7 @@ describe('Wallet scenarios', async () => { console.log('contract deployed at', receipt.contractaddress.toString()); assert.equal(receipt.status, 'CREATED', `failed with error: ${receipt.result}`); contract.setAddress(receipt.contractaddress); - const contractId = receipt.contractaddress.value.toString('hex'); + const contractId = receipt.contractaddress.value.toString(); // Call contract // @ts-ignore @@ -293,7 +293,7 @@ describe('Wallet scenarios', async () => { const callTxTracker = await wallet.sendTransaction(account, callTx); const callTxReceipt = await callTxTracker.getReceipt(); assert.equal(callTxReceipt.status, 'ERROR'); - assert.equal(callTxReceipt.result, `[string "${contractId}"]:0: failed as expected`); + assert.equal(callTxReceipt.result, `${contractId}:0: failed as expected`); }).timeout(5000); it.skip('get account transactions', async () => { From 8d2487635742c09f14a6c5d105e885eef0196f06 Mon Sep 17 00:00:00 2001 From: Bernardo Ramos Date: Tue, 22 Oct 2024 01:18:20 -0300 Subject: [PATCH 3/3] attempt to fix tests - 2 --- packages/wallet/test/e2e_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wallet/test/e2e_test.ts b/packages/wallet/test/e2e_test.ts index 5298783..0372018 100644 --- a/packages/wallet/test/e2e_test.ts +++ b/packages/wallet/test/e2e_test.ts @@ -283,7 +283,7 @@ describe('Wallet scenarios', async () => { console.log('contract deployed at', receipt.contractaddress.toString()); assert.equal(receipt.status, 'CREATED', `failed with error: ${receipt.result}`); contract.setAddress(receipt.contractaddress); - const contractId = receipt.contractaddress.value.toString(); + const contractId = receipt.contractaddress.toString(); // Call contract // @ts-ignore