Skip to content

Commit

Permalink
multiply gas
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Oct 9, 2023
1 parent 2709259 commit c2a0c4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ echo "Testing CCM Value"

CCM_VALUE_CONTRACT=$(npx hardhat deploy --networks goerli_testnet,mumbai_testnet --json | jq -r '.goerli_testnet')
echo $CCM_VALUE_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)
CCM_VALUE_TX_OUT=$(npx hardhat interact --network goerli_testnet --contract $CCM_VALUE_CONTRACT --destination mumbai_testnet --amount $CCM_FEE --json)
echo $CCM_VALUE_TX_OUT
CCM_VALUE_TX=$(echo $CCM_VALUE_TX_OUT | jq -r '.hash')
Expand Down

0 comments on commit c2a0c4f

Please sign in to comment.