Skip to content

Commit

Permalink
print fees
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkouv committed Nov 26, 2024
1 parent 03edaa6 commit bd8e392
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deployment/ccip/changeset/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ func NewMemoryEnvironmentWithJobsAndContracts(t *testing.T, lggr logger.Logger,
}

func CCIPSendRequest(
t *testing.T,
e deployment.Environment,
state CCIPOnChainState,
src, dest uint64,
Expand Down Expand Up @@ -415,6 +416,10 @@ func CCIPSendRequest(
}
blockNum, err := e.Chains[src].Confirm(tx)
if err != nil {
currentFee, err := r.GetFee(&bind.CallOpts{Context: context.Background()}, dest, msg)
require.NoError(t, err)
t.Logf("failed to confirm ccip message with fee %s originalFee=%s currentFee=%s",
e.Chains[src].DeployerKey.Value, fee, currentFee)
return tx, 0, errors.Wrap(err, "failed to confirm CCIP message")
}
return tx, blockNum, nil
Expand Down Expand Up @@ -450,6 +455,7 @@ func TestSendRequest(
t.Logf("Sending CCIP request from chain selector %d to chain selector %d",
src, dest)
tx, blockNum, err := CCIPSendRequest(
t,
e,
state,
src, dest,
Expand Down

0 comments on commit bd8e392

Please sign in to comment.