Skip to content

Commit

Permalink
hope this fixes things
Browse files Browse the repository at this point in the history
  • Loading branch information
bengobeil committed Nov 15, 2024
1 parent 367330e commit 7d8c3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulla-contracts/src/functions/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export const getOrCreatePoolProfitAndLoss = (event: ethereum.Event, pnl: BigInt)
poolPnl.pnlHistory = [];
}

const pnlHistoryEntryId = poolPnl.id.concat("-").concat(event.transaction.hash.toString()).concat("-").concat(event.logIndex.toString());
const pnlHistoryEntryId = poolPnl.id.concat("-").concat(event.transaction.hash.toHexString()).concat("-").concat(event.logIndex.toString());
const pnlHistoryEntry = new PnlHistoryEntry(pnlHistoryEntryId);
pnlHistoryEntry.timestamp = event.block.timestamp;
pnlHistoryEntry.pnl = pnl;
Expand Down

0 comments on commit 7d8c3a5

Please sign in to comment.