@@ -10,23 +10,25 @@ import {TokenPool} from "../../pools/TokenPool.sol";
1010import {IERC20 } from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol " ;
1111import {SafeERC20} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol " ;
1212
13- /// @notice This pool mints and burns LBTC tokens through the Cross Chain Transfer
14- /// Protocol (CCTP).
13+ /// @notice This mock contract facilitates testing of LBTC token transfers by burning and minting tokens.
1514contract MockLBTCTokenPool is TokenPool , ITypeAndVersion {
1615 using SafeERC20 for IERC20 ;
1716
1817 string public constant override typeAndVersion = "MockLBTCTokenPool 1.5.1 " ;
1918
20- bytes public destPoolData;
19+ // This variable i_destPoolData will have either a 32-byte or non-32-byte value, which will change the off-chain behavior.
20+ // If it is 32 bytes, the off-chain will consider it as attestation enabled and call the attestation API.
21+ // If it is non-32 bytes, the off-chain will consider it as attestation disabled.
22+ bytes public immutable i_destPoolData;
2123
2224 constructor (
2325 IERC20 token ,
2426 address [] memory allowlist ,
2527 address rmnProxy ,
2628 address router ,
27- bytes memory _data
29+ bytes memory destPoolData
2830 ) TokenPool (token, 8 , allowlist, rmnProxy, router) {
29- destPoolData = _data ;
31+ i_destPoolData = destPoolData ;
3032 }
3133
3234 function lockOrBurn (
@@ -40,7 +42,7 @@ contract MockLBTCTokenPool is TokenPool, ITypeAndVersion {
4042 destTokenAddress: getRemoteToken (
4143 lockOrBurnIn.remoteChainSelector
4244 ),
43- destPoolData: destPoolData
45+ destPoolData: i_destPoolData
4446 });
4547 }
4648
0 commit comments