Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1704d87

Browse files
committedFeb 12, 2025··
more
1 parent 1ae1d7c commit 1704d87

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed
 

‎packages/protocol/contracts/shared/tokenvault/ERC1155Vault.sol

-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ contract ERC1155Vault is BaseNFTVault, ERC1155ReceiverUpgradeable {
7373
// Send the message and obtain the message hash
7474
bytes32 msgHash;
7575

76-
// TODO(daniel): replace with immutable
7776
(msgHash, message_) =
7877
IBridge(resolve(LibStrings.B_BRIDGE, false)).sendMessage{ value: msg.value }(message);
7978

@@ -297,7 +296,6 @@ contract ERC1155Vault is BaseNFTVault, ERC1155ReceiverUpgradeable {
297296
(owner(), _ctoken.addr, _ctoken.chainId, _ctoken.symbol, _ctoken.name)
298297
);
299298

300-
// TODO(daniel): replace with immutable
301299
btoken_ = address(new ERC1967Proxy(resolve(LibStrings.B_BRIDGED_ERC1155, false), data));
302300

303301
bridgedToCanonical[btoken_] = _ctoken;

‎packages/protocol/contracts/shared/tokenvault/ERC20Vault.sol

-3
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ contract ERC20Vault is BaseVault {
297297
}
298298
}
299299

300-
// TODO(daniel): replace with immutable
301300
address bridge = resolve(LibStrings.B_BRIDGE, false);
302301

303302
(
@@ -609,7 +608,6 @@ contract ERC20Vault is BaseVault {
609608
(owner(), ctoken.addr, ctoken.chainId, ctoken.decimals, ctoken.symbol, ctoken.name)
610609
);
611610

612-
// TODO(daniel): replace with immutable
613611
btoken = address(new ERC1967Proxy(resolve(LibStrings.B_BRIDGED_ERC20, false), data));
614612
bridgedToCanonical[btoken] = ctoken;
615613
canonicalToBridged[ctoken.chainId][ctoken.addr] = btoken;
@@ -627,7 +625,6 @@ contract ERC20Vault is BaseVault {
627625
function _consumeTokenQuota(address _token, uint256 _amount) private {
628626
address quotaManager = resolve(LibStrings.B_QUOTA_MANAGER, true);
629627
if (quotaManager != address(0)) {
630-
// TODO(daniel): replace with immutable
631628
IQuotaManager(quotaManager).consumeQuota(_token, _amount);
632629
}
633630
}

‎packages/protocol/contracts/shared/tokenvault/ERC721Vault.sol

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ contract ERC721Vault is BaseNFTVault, IERC721Receiver {
7070

7171
bytes32 msgHash;
7272
(msgHash, message_) =
73-
// TODO(daniel): replace with immutable
74-
IBridge(resolve(LibStrings.B_BRIDGE, false)).sendMessage{ value: msg.value }(message);
73+
IBridge(resolve(LibStrings.B_BRIDGE, false)).sendMessage{ value: msg.value }(message);
7574

7675
emit TokenSent({
7776
msgHash: msgHash,
@@ -254,7 +253,6 @@ contract ERC721Vault is BaseNFTVault, IERC721Receiver {
254253
(owner(), _ctoken.addr, _ctoken.chainId, _ctoken.symbol, _ctoken.name)
255254
);
256255

257-
// TODO(daniel): replace with immutable
258256
btoken_ = address(new ERC1967Proxy(resolve(LibStrings.B_BRIDGED_ERC721, false), data));
259257
bridgedToCanonical[btoken_] = _ctoken;
260258
canonicalToBridged[_ctoken.chainId][_ctoken.addr] = btoken_;

0 commit comments

Comments
 (0)
Please sign in to comment.