diff --git a/bulla-contracts/src/functions/common.ts b/bulla-contracts/src/functions/common.ts index bcb4a3b..91f67f6 100644 --- a/bulla-contracts/src/functions/common.ts +++ b/bulla-contracts/src/functions/common.ts @@ -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;