Skip to content

Commit 1a23663

Browse files
committed
chore(ZkStack_Adapter): Remove unused canonicalTxHash
This variable is no longer used. Removing it addresses a warning being emitted by solc.
1 parent f3887a5 commit 1a23663

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

contracts/chain-adapters/ZkStack_Adapter.sol

+1-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ contract ZkStack_Adapter is AdapterInterface, CircleCCTPAdapter {
123123
function relayMessage(address target, bytes memory message) external payable override {
124124
uint256 txBaseCost = _computeETHTxCost(L2_GAS_LIMIT);
125125

126-
// Returns the hash of the requested L2 transaction. This hash can be used to follow the transaction status.
127-
bytes32 canonicalTxHash = BRIDGE_HUB.requestL2TransactionDirect{ value: txBaseCost }(
126+
BRIDGE_HUB.requestL2TransactionDirect{ value: txBaseCost }(
128127
BridgeHubInterface.L2TransactionRequestDirect({
129128
chainId: CHAIN_ID,
130129
mintValue: txBaseCost,

contracts/chain-adapters/ZkStack_CustomGasToken_Adapter.sol

+1-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ contract ZkStack_CustomGasToken_Adapter is AdapterInterface, CircleCCTPAdapter {
148148
uint256 txBaseCost = _pullCustomGas(L2_GAS_LIMIT);
149149
IERC20(CUSTOM_GAS_TOKEN).forceApprove(BRIDGE_HUB.sharedBridge(), txBaseCost);
150150

151-
// Returns the hash of the requested L2 transaction. This hash can be used to follow the transaction status.
152-
bytes32 canonicalTxHash = BRIDGE_HUB.requestL2TransactionDirect(
151+
BRIDGE_HUB.requestL2TransactionDirect(
153152
BridgeHubInterface.L2TransactionRequestDirect({
154153
chainId: CHAIN_ID,
155154
mintValue: txBaseCost,

0 commit comments

Comments
 (0)