Skip to content

Commit

Permalink
use calculated ccm fee
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Oct 1, 2023
1 parent cba6c7c commit 6f3295a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ CCM_FEE=$(npx hardhat fees --json | jq -r ".feesCCM.mumbai_testnet.totalFee")

echo "CCM fee: $CCM_FEE"

CCM_TX_OUT=$(npx hardhat interact --network goerli_testnet --contract $CCM_CONTRACT --message "Hello World" --destination mumbai_testnet --amount 3 --json)
CCM_TX_OUT=$(npx hardhat interact --network goerli_testnet --contract $CCM_CONTRACT --message "Hello World" --destination mumbai_testnet --amount $CCM_FEE --json)

echo "CCM TX out: $CCM_TX_OUT"

CCM_TX=$(echo $CCM_TX_OUT | jq -r '.hash')

echo "CCM TX hash: $CCM_TX"

CCM_CCTX=$(npx hardhat cctx $CCM_TX --json)
CCM_CCTX=$(npx hardhat cctx $CCM_TX --json)

echo "CCM CCTX: $CCM_CCTX"

0 comments on commit 6f3295a

Please sign in to comment.