From 70c1a9f4ae93a4523c181317b463069bea4db6cd Mon Sep 17 00:00:00 2001 From: Amine E Date: Mon, 25 Mar 2024 14:06:36 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Karim H. <98668332+khadni@users.noreply.github.com> --- src/content/ccip/tutorials/ccipreceive-gaslimit.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/ccip/tutorials/ccipreceive-gaslimit.mdx b/src/content/ccip/tutorials/ccipreceive-gaslimit.mdx index 6a06e23b2ac..cc972307327 100644 --- a/src/content/ccip/tutorials/ccipreceive-gaslimit.mdx +++ b/src/content/ccip/tutorials/ccipreceive-gaslimit.mdx @@ -264,7 +264,7 @@ Now that you've locally estimated the gas usage of the `ccipReceive` function us To estimate the gas usage of the `ccipReceive` function within your own Foundry project, follow these steps: -1. Create a testing file in the `test` directory of your project and import the `MockCCIPRouter` contract: +1. Create a testing file in the `test` directory of your project and import the [`MockCCIPRouter`](https://github.com/smartcontractkit/ccip/blob/ccip-develop/contracts/src/v0.8/ccip/test/mocks/MockRouter.sol) contract: ```solidity import "@chainlink/contracts/src/v0.8/ccip/test/mocks/MockRouter.sol"; @@ -272,7 +272,7 @@ To estimate the gas usage of the `ccipReceive` function within your own Foundry **_Note_:** The `MockCCIPRouter` receives the CCIP message from your CCIP Sender, calls the `ccipReceive` function on your CCIP Receiver, and emits the `MsgExecuted` event with the gas used. -1. Inside the `setUp` function, deploy the `MockCCIPRouter` contract, and use its address to deploy your CCIP Sender, and CCIP Receiver contracts. For more details, check this [example](https://github.com/smartcontractkit/smart-contract-examples/blob/main/ccip/estimate-gas/foundry/test/SendReceive.t.sol#L23). +1. Inside the `setUp` function, deploy the `MockCCIPRouter` contract, and use its address to deploy your CCIP Sender and CCIP Receiver contracts. For more details, check this [example](https://github.com/smartcontractkit/smart-contract-examples/blob/main/ccip/estimate-gas/foundry/test/SendReceive.t.sol#L23). 1. In your test cases: @@ -289,7 +289,7 @@ To estimate the gas usage of the `ccipReceive` function within your own Hardhat 1. Create a Solidity file in the `contracts` directory of your project and import the [`MockCCIPRouter`](https://github.com/smartcontractkit/ccip/blob/ccip-develop/contracts/src/v0.8/ccip/test/mocks/MockRouter.sol) contract: ```solidity - import "@chainlink/contracts/src/v0.8/ccip/test/mocks/MockRouter.sol"; + import {MockCCIPRouter} from "@chainlink/contracts-ccip/src/v0.8/ccip/test/mocks/MockRouter.sol"; ``` **_Note_:** The `MockCCIPRouter` receives the CCIP message from your CCIP Sender, calls the `ccipReceive` function on your CCIP Receiver, and emits the `MsgExecuted` event with the gas used.