Skip to content

Commit

Permalink
fix getproof error
Browse files Browse the repository at this point in the history
  • Loading branch information
luu-alex committed Dec 4, 2023
1 parent 7e2b4e7 commit 33c068d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/web3/test/e2e/get_proof.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AccountObject>({
balance: expect.any(BigInt),
codeHash: expect.any(String),
nonce: expect.any(BigInt),
storageHash: expect.any(String),
storageProof: expect.any(Array<string>),
});
}
else {
expect(result).toMatchObject<AccountObject>({
accountProof: expect.any(Array<string>),
balance: expect.any(BigInt),
Expand Down

0 comments on commit 33c068d

Please sign in to comment.