diff --git a/src/mappings/pool.ts b/src/mappings/pool.ts index 1fb9171..80bf616 100644 --- a/src/mappings/pool.ts +++ b/src/mappings/pool.ts @@ -1,4 +1,4 @@ -import { BigInt, Address } from '@graphprotocol/graph-ts' +import { BigInt, Address, log } from '@graphprotocol/graph-ts' import { LOG_EXIT, LOG_JOIN, @@ -235,9 +235,12 @@ export function handleSetup(event: LOG_SETUP): void { event.params.baseTokenAmountIn.toBigDecimal(), token.decimals ) + pool.tx = event.transaction.hash.toHex() pool.save() poolTx.save() + log.debug('\n\n Pool: {}\n\n\n', [pool.tx]) + const lpFee = getPoolLpSwapFee(event.address) pool.liquidityProviderSwapFee = lpFee const publisherMarketFee = getPoolPublisherMarketFee(event.address) diff --git a/test/integration/SimplePublishConsume.test.ts b/test/integration/SimplePublishConsume.test.ts index 8e7ff5a..8f6d978 100644 --- a/test/integration/SimplePublishConsume.test.ts +++ b/test/integration/SimplePublishConsume.test.ts @@ -536,7 +536,6 @@ describe('Simple Publish & consume test', async () => { transactions, publishMarketFeeAddress }}` } - console.log('poolQuery', poolQuery) await sleep(2000) const response = await fetch(subgraphUrl, {