Skip to content

Commit

Permalink
remove unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAtwill committed Dec 27, 2024
1 parent e4bbf11 commit 5bb94d2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions contracts/test/integration/L2PlusSubnet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -581,15 +581,13 @@ contract L2PlusSubnetTest is Test, IntegrationTestBase {
id: crossMessage.toDeterministicHash()
});

console.log("here");
crossMessage.nonce = 0;
if (subnetSupply.kind == AssetKind.ERC20) {
params.root.gateway.messenger().sendContractXnetMessage(crossMessage);
} else {
params.root.gateway.messenger().sendContractXnetMessage{value: params.amount}(crossMessage);
}

console.log("here2");
IpcEnvelope[] memory msgs = new IpcEnvelope[](1);
msgs[0] = crossMessage;

Expand All @@ -601,22 +599,18 @@ contract L2PlusSubnetTest is Test, IntegrationTestBase {
params.subnetL3.subnetActorAddr,
params.subnet.gatewayAddr
);
console.log("here3");
// apply the cross message in the L3 subnet
executeTopDownMsgs(msgs, params.subnetL3.gateway);
console.log("here4");
// submit checkoint so the result message can be propagated to L2
submitBottomUpCheckpoint(
callCreateBottomUpCheckpointFromChildSubnet(params.subnetL3.id, params.subnetL3.gateway),
params.subnetL3.subnetActor
);
console.log("here5");
// submit checkoint so the result message can be propagated to root network
submitBottomUpCheckpoint(
callCreateBottomUpCheckpointFromChildSubnet(params.subnet.id, params.subnet.gateway),
params.subnet.subnetActor
);
console.log("here6");
assertTrue(params.caller.hasResult(), "missing result");
assertTrue(params.caller.result().outcome == params.expectedOutcome, "wrong result outcome");
assertTrue(keccak256(params.caller.result().ret) == keccak256(params.expectedRet), "wrong result outcome");
Expand Down

0 comments on commit 5bb94d2

Please sign in to comment.