Skip to content

Commit 66b8b60

Browse files
committed
Allow self mint
1 parent 26aa2ac commit 66b8b60

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

chains/evm/contracts/pools/CCTTokenPool.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ contract CCTTokenPool is TokenPool, BaseERC20 {
5151
address to,
5252
uint256 value
5353
) internal virtual override {
54-
if (to == address(this) && from == address(0)) revert InvalidRecipient(to);
55-
5654
ERC20._update(from, to, value);
5755
}
5856

chains/evm/contracts/test/pools/CCTTokenPool/CCTTokenPool.sendReceive.t.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ contract CCTTokenPool_sendReceive is CCTTokenPoolSetup {
104104
assertEq(SEND_AMOUNT, IERC20(address(s_cctPool)).balanceOf(address(s_cctPool)));
105105
}
106106

107-
function test_sendReceive_RevertWhen_MintToPoolBlocked() public {
107+
function test_sendReceive_MintToPoolAllowed() public {
108108
vm.startPrank(s_allowedOffRamp);
109109

110-
vm.expectRevert(abi.encodeWithSelector(BaseERC20.InvalidRecipient.selector, address(s_destCCTPool)));
111110
s_destCCTPool.releaseOrMint(
112111
Pool.ReleaseOrMintInV1({
113112
originalSender: abi.encode(s_sender),

0 commit comments

Comments
 (0)