Skip to content

Commit

Permalink
Merge pull request #143 from hansstammler/feat_issue_128
Browse files Browse the repository at this point in the history
feat #128: added module.exports and fixed function names
  • Loading branch information
mojtaba-eshghie authored Jun 24, 2024
2 parents 00825ca + b2f84a1 commit a53d383
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CI/tests/Bridge.exploit1.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,6 @@ async function startUp() {

}

startUp();
//startUp();

module.exports = startUp;
3 changes: 2 additions & 1 deletion CI/tests/Bridge.exploit2.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ async function startUp() {
bridgeTestLogger.debug("Done");

}
//startUp();

startUp();
module.exports = startUp;
2 changes: 1 addition & 1 deletion contracts/src/cross-chain/AvaxRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contract AvaxRouter {
emit Deposit(msg.sender, vault, asset, depositAmount, memo);
}

function depositWithExpiry(
function avax_depositWithExpiry(
address payable vault,
address asset,
uint amount,
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/cross-chain/EthRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contract EthRouter {
emit Deposit(msg.sender, vault, asset, depositAmount, memo);
}

function depositWithExpiry(
function eth_depositWithExpiry(
address payable vault,
address asset,
uint amount,
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/cross-chain/EthRouterVulnerability1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contract EthRouterVulnerability1 {
}
}

function depositWithExpiry(
function eth_depositWithExpiry(
address payable vault,
address asset,
uint amount,
Expand Down

0 comments on commit a53d383

Please sign in to comment.