Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yoozo committed Oct 24, 2024
1 parent 107885a commit f388949
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/node/src/ethereum/api.ethereum.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,8 @@ describe('Api.ethereum', () => {
expect(isFullBlock(blockData)).toBeTruthy();
expect(isFullBlock(lightBlock)).toBeFalsy();

// block with transactions, but no logs
const noLogBlockData = _.cloneDeep(blockData);
noLogBlockData.logs = [];
// block with transactions, but no logs 4913287
const noLogBlockData = (await (ethApi as any).fetchBlock(4913287)).block;
expect(isFullBlock(noLogBlockData)).toBeTruthy();

// block without transaction
Expand Down

0 comments on commit f388949

Please sign in to comment.