Skip to content

Commit

Permalink
Checks X chanin txs in bridge contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
vzotova committed Sep 7, 2023
1 parent ff36f5b commit 34089fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/coordination/TACoChildApplication.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ contract TACoChildApplication is ITACoRootToChild, ITACoChildApplication, Initia
"Address for root application must be specified"
);
rootApplication = _rootApplication;
_disableInitializers();
}

/**
Expand Down
3 changes: 2 additions & 1 deletion contracts/xchain/PolygonChild.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ contract PolygonChild is ITACoChildToRoot, FxBaseChildTunnel, Ownable {
bytes memory data
) internal override validateSender(sender) {
// solhint-disable-next-line avoid-low-level-calls
childApplication.call(data);
(bool success, ) = childApplication.call(data);
require(success, "Child tx failed");
}

function setChildApplication(address _childApplication) public onlyOwner {
Expand Down
3 changes: 2 additions & 1 deletion contracts/xchain/PolygonRoot.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ contract PolygonRoot is FxBaseRootTunnel, ITACoRootToChild {

function _processMessageFromChild(bytes memory data) internal override {
// solhint-disable-next-line avoid-low-level-calls
rootApplication.call(data);
(bool success, ) = rootApplication.call(data);
require(success, "Root tx failed");
}

function updateOperator(
Expand Down

0 comments on commit 34089fa

Please sign in to comment.