Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: multiply dynamic gas value by 2 to ensure no gas errors #72

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading