Skip to content

Commit 0259d29

Browse files
committed
[N-01]: Fix missing and misleading documentation
1 parent 77761d7 commit 0259d29

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

contracts/ZkSync_SpokePool.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ contract ZkSync_SpokePool is SpokePool, CircleCCTPAdapter {
4343

4444
/**
4545
* @notice Constructor.
46+
* @dev Circle bridged & native USDC are optionally supported via configuration, but are mutually exclusive.
4647
* @param _wrappedNativeTokenAddress wrappedNativeToken address for this network to set.
4748
* @param _circleUSDC Circle USDC address on the SpokePool. Set to 0x0 to use the standard ERC20 bridge instead.
4849
* If not set to zero, then either the zkUSDCBridge or cctpTokenMessenger must be set and will be used to

contracts/chain-adapters/ZkStack_Adapter.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ contract ZkStack_Adapter is AdapterInterface, CircleCCTPAdapter {
6666

6767
/**
6868
* @notice Constructs new Adapter.
69+
* @dev Circle bridged & native USDC are optionally supported via configuration, but are mutually exclusive.
6970
* @param _chainId The target ZkStack network's chain ID.
7071
* @param _bridgeHub The bridge hub contract address for the ZkStack network.
7172
* @param _circleUSDC Circle USDC address on L1. If not set to address(0), then either the USDCSharedBridge
@@ -200,7 +201,7 @@ contract ZkStack_Adapter is AdapterInterface, CircleCCTPAdapter {
200201
);
201202
}
202203
} else {
203-
// An ERC20 that is not WETH.
204+
// An standard bridged ERC20, separate from WETH and Circle Bridged/Native USDC.
204205
address sharedBridge = BRIDGE_HUB.sharedBridge();
205206
IERC20(l1Token).forceApprove(sharedBridge, amount);
206207
txHash = BRIDGE_HUB.requestL2TransactionTwoBridges{ value: txBaseCost }(

contracts/chain-adapters/ZkStack_CustomGasToken_Adapter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ contract ZkStack_CustomGasToken_Adapter is AdapterInterface, CircleCCTPAdapter {
244244
);
245245
}
246246
} else {
247-
// An ERC20 that is not WETH and not the custom gas token.
247+
// An standard bridged ERC20, separate from WETH and Circle Bridged/Native USDC.
248248
IERC20(CUSTOM_GAS_TOKEN).forceApprove(sharedBridge, txBaseCost);
249249
IERC20(l1Token).forceApprove(sharedBridge, amount);
250250
txHash = BRIDGE_HUB.requestL2TransactionTwoBridges(

0 commit comments

Comments
 (0)