From 33c068db9372c016a27131435444ddf5fa711893 Mon Sep 17 00:00:00 2001 From: luu-alex Date: Mon, 4 Dec 2023 14:53:07 -0500 Subject: [PATCH] fix getproof error --- packages/web3/test/e2e/get_proof.test.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/web3/test/e2e/get_proof.test.ts b/packages/web3/test/e2e/get_proof.test.ts index 73e1e1ba7f2..c25fd0f1080 100644 --- a/packages/web3/test/e2e/get_proof.test.ts +++ b/packages/web3/test/e2e/get_proof.test.ts @@ -68,7 +68,17 @@ describe(`${getSystemTestBackend()} tests - getProof`, () => { if (block === 'blockHash' || block === 'blockNumber') { expect(result).toEqual(expectedProof); - } else { + } + else if(block === 'pending') { + expect(result).toMatchObject({ + balance: expect.any(BigInt), + codeHash: expect.any(String), + nonce: expect.any(BigInt), + storageHash: expect.any(String), + storageProof: expect.any(Array), + }); + } + else { expect(result).toMatchObject({ accountProof: expect.any(Array), balance: expect.any(BigInt),