Commit 82f35570 authored by vicotor's avatar vicotor

update scripts

parent 1dc01d65
......@@ -66,11 +66,12 @@ async function setConfig(tokenA, tokenB, bridge) {
// if treasury is exist, do approve .
var bridgeAddr = await bridge.getAddress();
if (treasury.address) {
// test environment, mint token and approve.
await mintToken(tokenA, tokenB, TREASURY);
await treasuryApprove(tokenA, tokenB, bridgeAddr, treasury);
}
await mintToken(tokenA, tokenB, bridgeAddr)
// if (treasury.address) {
// // test environment, mint token and approve.
// 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