Skip to content

Commit

Permalink
update code demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher authored May 15, 2024
1 parent 2c19e66 commit 3b00152
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/data/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ contract LnBridgeTargetV3 {
for (uint i = 0; i < _transferIds.length; i++) {
bytes32 transferId = _transferIds[i];
FillTransfer memory fillTransfer = fillTransfers[transferId];
// make sure that each transfer has the same provider
require(fillTransfer.provider == _provider, "provider invalid");
}
bytes memory message = encodeWithdrawLiquidityRequest(_transferIds, _provider);
Expand All @@ -241,8 +240,6 @@ contract LnBridgeTargetV3 {
}
}
pragma solidity ^0.8.17;
// # ...(omitted code)...
contract MsgportMessager is Application, AccessController {
Expand All @@ -257,12 +254,7 @@ contract MsgportMessager is Application, AccessController {
address remoteAppAddress = remoteAppReceivers[key];
require(remoteAppAddress != address(0), "app pair not registered");
bytes memory msgportPayload = messagePayload(msg.sender, remoteAppAddress, _message);
msgport.send{ value: msg.value }(
remoteMessager.msgportRemoteChainId,
remoteMessager.messager,
msgportPayload,
_params
);
msgport.send{ value: msg.value }(remoteMessager.msgportRemoteChainId, remoteMessager.messager, msgportPayload, _params);
}
}`,
language: "solidity",
Expand Down

0 comments on commit 3b00152

Please sign in to comment.