Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
derpy-duck committed Sep 27, 2023
1 parent 422ca4f commit 9fc3cad
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions test/CCTPBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,14 @@ contract WormholeSDKTest is WormholeRelayerBasicTest {
);
}

function setUpGeneral() public override {
function setUpGeneral() public override {
vm.selectFork(sourceFork);
CCTPToySource.setRegisteredSender(targetChain, toWormholeFormat(address(CCTPToyTarget)));

vm.selectFork(targetFork);
CCTPToyTarget.setRegisteredSender(sourceChain, toWormholeFormat(address(CCTPToySource)));
}



// function setUpGeneral() public override {
// vm.selectFork(sourceFork);

// vm.selectFork(targetFork);
// }

function testSendToken() public {
vm.selectFork(sourceFork);

Expand All @@ -164,27 +156,4 @@ contract WormholeSDKTest is WormholeRelayerBasicTest {
assertEq(IERC20(USDCTarget).balanceOf(recipient), amount);
}

// function testSendTokenWithRefund() public {
// vm.selectFork(sourceFork);

// uint256 amount = 19e17;
// token.approve(address(CCTPToySource), amount);

// vm.selectFork(targetFork);
// address recipient = 0x1234567890123456789012345678901234567890;
// address refundAddress = 0x2234567890123456789012345678901234567890;
// vm.selectFork(sourceFork);
// uint256 cost = CCTPToySource.quoteCrossChainDeposit(targetChain);

// vm.recordLogs();
// CCTPToySource.sendCrossChainDeposit{value: cost}(
// targetChain, recipient, amount, address(token), targetChain, refundAddress
// );
// performDelivery();

// vm.selectFork(targetFork);
// address wormholeWrappedToken = tokenBridgeTarget.wrappedAsset(sourceChain, toWormholeFormat(address(token)));
// assertEq(IERC20(wormholeWrappedToken).balanceOf(recipient), amount);
// assertTrue(refundAddress.balance > 0);
// }
}

0 comments on commit 9fc3cad

Please sign in to comment.