From b2f84a1d1340b51ba5632b30fa8197c4d614826f Mon Sep 17 00:00:00 2001 From: Hans Stammler <81676569+hansstammler@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:10:46 +0200 Subject: [PATCH] feat #128: added module.exports and fixed function names --- CI/tests/Bridge.exploit1.js | 4 +++- CI/tests/Bridge.exploit2.js | 3 ++- contracts/src/cross-chain/AvaxRouter.sol | 2 +- contracts/src/cross-chain/EthRouter.sol | 2 +- contracts/src/cross-chain/EthRouterVulnerability1.sol | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CI/tests/Bridge.exploit1.js b/CI/tests/Bridge.exploit1.js index 8172b6e..e9cae86 100644 --- a/CI/tests/Bridge.exploit1.js +++ b/CI/tests/Bridge.exploit1.js @@ -129,4 +129,6 @@ async function startUp() { } -startUp(); \ No newline at end of file +//startUp(); + +module.exports = startUp; \ No newline at end of file diff --git a/CI/tests/Bridge.exploit2.js b/CI/tests/Bridge.exploit2.js index 49de623..3f46217 100644 --- a/CI/tests/Bridge.exploit2.js +++ b/CI/tests/Bridge.exploit2.js @@ -132,5 +132,6 @@ async function startUp() { bridgeTestLogger.debug("Done"); } +//startUp(); -startUp(); \ No newline at end of file +module.exports = startUp; \ No newline at end of file diff --git a/contracts/src/cross-chain/AvaxRouter.sol b/contracts/src/cross-chain/AvaxRouter.sol index 274d575..e783b64 100644 --- a/contracts/src/cross-chain/AvaxRouter.sol +++ b/contracts/src/cross-chain/AvaxRouter.sol @@ -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, diff --git a/contracts/src/cross-chain/EthRouter.sol b/contracts/src/cross-chain/EthRouter.sol index 7453b8f..4f38418 100644 --- a/contracts/src/cross-chain/EthRouter.sol +++ b/contracts/src/cross-chain/EthRouter.sol @@ -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, diff --git a/contracts/src/cross-chain/EthRouterVulnerability1.sol b/contracts/src/cross-chain/EthRouterVulnerability1.sol index 8d08037..596b208 100644 --- a/contracts/src/cross-chain/EthRouterVulnerability1.sol +++ b/contracts/src/cross-chain/EthRouterVulnerability1.sol @@ -90,7 +90,7 @@ contract EthRouterVulnerability1 { } } - function depositWithExpiry( + function eth_depositWithExpiry( address payable vault, address asset, uint amount,