Int simple test exit
@@ -158,6 +158,7 @@ async function moveFunds(contract: Contract, ethProxy: ETHProxy, depositWallet:
}
(async () => {
+ try {
const WEB3_URL = process.env.WEB3_URL;
// Mnemonic for eth wallet.
const MNEMONIC = process.env.TEST_MNEMONIC;
@@ -208,4 +209,8 @@ async function moveFunds(contract: Contract, ethProxy: ETHProxy, depositWallet:
await moveFunds(contract, ethProxy, syncWalletRich, syncWallet, syncWallet3, "ETH", "0.018");
await syncProvider.disconnect();
+ } catch (e) {
+ console.error("Error: ", e);
+ process.exit(1);
+ }
})();
