Skip to content

Commit

Permalink
show simple builder deploy results
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive committed Jun 13, 2024
1 parent 0286e43 commit fe36ea8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/TokenVaultId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
SimpleRefundBuilder,
CollateralProvider,
ERC20Token,
SimpleBuilder,
} from "../typechain-types"
import {
lockDealNFTArtifact,
Expand All @@ -35,6 +36,7 @@ describe("Token Vault Id", function () {
let collateralProvider: CollateralProvider
let refundProvider: RefundProvider
let simpleRefundBuilder: SimpleRefundBuilder
let simpleBuilder: SimpleBuilder
let token: ERC20Token
let mainCoin: ERC20Token
let tempToken: ERC20Token
Expand Down Expand Up @@ -77,6 +79,7 @@ describe("Token Vault Id", function () {
lockDealNFT.address,
collateralProvider.address
)) as RefundProvider
simpleBuilder = (await deploy("SimpleBuilder", lockDealNFT.address)) as SimpleBuilder
token = (await deploy("ERC20Token", "Token", "TOKEN")) as ERC20Token
mainCoin = (await deploy("ERC20Token", "MainCoin", "USDT")) as ERC20Token
tempToken = (await deploy("ERC20Token", "Token1", "TOKEN1")) as ERC20Token
Expand All @@ -95,6 +98,7 @@ describe("Token Vault Id", function () {
await lockDealNFT.setApprovedContract(collateralProvider.address, true)
await lockDealNFT.setApprovedContract(refundProvider.address, true)
await lockDealNFT.setApprovedContract(simpleRefundBuilder.address, true)
await lockDealNFT.setApprovedContract(simpleBuilder.address, true)
await token.approve(vaultManager.address, amount.mul(100))
await mainCoin.approve(vaultManager.address, amount.mul(100))
await lockDealNFT.approvePoolTransfers(true)
Expand Down

0 comments on commit fe36ea8

Please sign in to comment.