Skip to content

Commit

Permalink
ci: multiply dynamic gas value by 2 to ensure no gas errors (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Oct 10, 2023
1 parent f38009b commit 2cede91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 2cede91

Please sign in to comment.