From 97eca886d2c105f18f326871f032a12e3e21b21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renaud?= Date: Mon, 4 Mar 2024 16:30:42 +0100 Subject: [PATCH] skip grant tokens on coverage (missing baseFee) --- smart-contracts/test/UnlockDiscountToken/grantTokens.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smart-contracts/test/UnlockDiscountToken/grantTokens.js b/smart-contracts/test/UnlockDiscountToken/grantTokens.js index 533b87e25f99..18519a1bced4 100644 --- a/smart-contracts/test/UnlockDiscountToken/grantTokens.js +++ b/smart-contracts/test/UnlockDiscountToken/grantTokens.js @@ -122,7 +122,7 @@ describe('UnlockDiscountToken (l2/sidechain) / granting Tokens', () => { ) }) - describe('grant by gas price', () => { + describeOrSkip('grant by gas price', () => { let gasSpent before(async () => { @@ -144,6 +144,7 @@ describe('UnlockDiscountToken (l2/sidechain) / granting Tokens', () => { ) const { baseFeePerGas } = await ethers.provider.getBlock(blockNumber) + // using estimatedGas instead of the actual gas used so this test does // not regress as other features are implemented gasSpent = baseFeePerGas.mul(estimateGas)