From 7fb3ec113bc72a199338daf164cc04db498d4f4c Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 9 Oct 2023 20:15:28 +0400 Subject: [PATCH] ci: multiply dynamic gas value by 2 to ensure no gas errors --- scripts/integration.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/integration.sh b/scripts/integration.sh index cde463b4..f99501ca 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -73,7 +73,11 @@ CCM_CONTRACT=$(npx hardhat deploy --networks goerli_testnet,mumbai_testnet --jso echo "Deployed CCM contract address: $CCM_CONTRACT" -CCM_FEE=$(npx hardhat fees --json | jq -r ".feesCCM.mumbai_testnet.totalFee") +PROTOCOL_FEE=$(npx hardhat fees --json | jq -r ".feesCCM.mumbai_testnet.protocolFee") +GAS_FEE=$(npx hardhat fees --json | jq -r ".feesCCM.mumbai_testnet.gasFee") + +# Multiply by 2 to be on the safe side +CCM_FEE=$(echo "$PROTOCOL_FEE + $GAS_FEE * 2" | bc -l) echo "CCM fee: $CCM_FEE"