Commit 82f35570 authored by vicotor's avatar vicotor

update scripts

parent 1dc01d65
...@@ -66,11 +66,12 @@ async function setConfig(tokenA, tokenB, bridge) { ...@@ -66,11 +66,12 @@ async function setConfig(tokenA, tokenB, bridge) {
// if treasury is exist, do approve . // if treasury is exist, do approve .
var bridgeAddr = await bridge.getAddress(); var bridgeAddr = await bridge.getAddress();
if (treasury.address) { await mintToken(tokenA, tokenB, bridgeAddr)
// test environment, mint token and approve. // if (treasury.address) {
await mintToken(tokenA, tokenB, TREASURY); // // test environment, mint token and approve.
await treasuryApprove(tokenA, tokenB, bridgeAddr, treasury); // await mintToken(tokenA, tokenB, TREASURY);
} // await treasuryApprove(tokenA, tokenB, bridgeAddr, treasury);
// }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment