mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-09 15:48:08 -05:00
11 lines
464 B
TypeScript
11 lines
464 B
TypeScript
import {describe, expect, it} from "vitest";
|
|
import {parseDepositLog} from "../../../../src/eth1/utils/depositContract.js";
|
|
import {goerliTestnetDepositEvents, goerliTestnetLogs} from "../../../utils/testnet.js";
|
|
|
|
describe("eth1 / util / depositContract", () => {
|
|
it("Should parse a raw deposit log", () => {
|
|
const depositEvents = goerliTestnetLogs.map((log) => parseDepositLog(log));
|
|
expect(depositEvents).toEqual(goerliTestnetDepositEvents);
|
|
});
|
|
});
|