Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
drikssy committed Oct 10, 2024
1 parent b02f580 commit e44d328
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions test/forgedPairsEntityForging.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseEther } from 'ethers';
import { assert, parseEther } from 'ethers';
import {
Airdrop,
DevFund,
Expand Down Expand Up @@ -67,6 +67,7 @@ describe('EntityForging', () => {
let count = 0;
const lowerIds = [];
const higherIds = [];
let tt_count = 0;
for (const event of events) {
count++;
const log = {
Expand Down Expand Up @@ -95,10 +96,15 @@ describe('EntityForging', () => {

lowerIds.push(lowerId);
higherIds.push(higherId);

// console.log(
// '//////////////////////////////////////////////////////////////////'
// );
console.log('lowerId: ', lowerId);
console.log('higherId: ', higherId);
if (lowerId == '2174' || higherId == '2174') {
tt_count++;
}

console.log(
'//////////////////////////////////////////////////////////////////'
);

// const { forgerId, mergerId } = event.args;

Expand All @@ -110,6 +116,9 @@ describe('EntityForging', () => {
// console.log(`Block Timestamp: ${new Date(timestamp * 1000).toLocaleString()}`);
}
await migrateForgedPairsData(protocolMaintainer, lowerIds, higherIds);
const t_count = await newEntityForging.forgingCounts(2174);
expect(t_count).to.equal(tt_count);

}

async function migrateForgedPairsData(
Expand Down

0 comments on commit e44d328

Please sign in to comment.