mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix freParams const issue
This commit is contained in:
parent
6f81a5ce3a
commit
c7c83e9f18
@ -27,6 +27,7 @@ describe('Datatoken', () => {
|
|||||||
let datatokenAddress: string
|
let datatokenAddress: string
|
||||||
let fixedRateAddress: string
|
let fixedRateAddress: string
|
||||||
let exchangeId: string
|
let exchangeId: string
|
||||||
|
let freParams: FreCreationParams
|
||||||
|
|
||||||
const nftData: NftCreateData = {
|
const nftData: NftCreateData = {
|
||||||
name: 'NFTName',
|
name: 'NFTName',
|
||||||
@ -37,17 +38,6 @@ describe('Datatoken', () => {
|
|||||||
owner: nftOwner
|
owner: nftOwner
|
||||||
}
|
}
|
||||||
|
|
||||||
const freParams: FreCreationParams = {
|
|
||||||
fixedRateAddress: contracts.fixedRateAddress,
|
|
||||||
baseTokenAddress: contracts.daiAddress,
|
|
||||||
owner: nftOwner,
|
|
||||||
marketFeeCollector: nftOwner,
|
|
||||||
baseTokenDecimals: 18,
|
|
||||||
datatokenDecimals: 18,
|
|
||||||
fixedRate: web3.utils.toWei('1'),
|
|
||||||
marketFee: '0'
|
|
||||||
}
|
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
const accounts = await web3.eth.getAccounts()
|
const accounts = await web3.eth.getAccounts()
|
||||||
nftOwner = accounts[0]
|
nftOwner = accounts[0]
|
||||||
@ -57,12 +47,21 @@ describe('Datatoken', () => {
|
|||||||
erc20DeployerUser = accounts[4]
|
erc20DeployerUser = accounts[4]
|
||||||
|
|
||||||
nftData.owner = nftOwner
|
nftData.owner = nftOwner
|
||||||
freParams.owner = nftOwner
|
|
||||||
freParams.marketFeeCollector = nftOwner
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should deploy contracts', async () => {
|
it('should deploy contracts', async () => {
|
||||||
contracts = await deployContracts(web3, nftOwner)
|
contracts = await deployContracts(web3, nftOwner)
|
||||||
|
|
||||||
|
freParams = {
|
||||||
|
fixedRateAddress: contracts.fixedRateAddress,
|
||||||
|
baseTokenAddress: contracts.daiAddress,
|
||||||
|
owner: nftOwner,
|
||||||
|
marketFeeCollector: nftOwner,
|
||||||
|
baseTokenDecimals: 18,
|
||||||
|
datatokenDecimals: 18,
|
||||||
|
fixedRate: web3.utils.toWei('1'),
|
||||||
|
marketFee: '0'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should initialize NFTFactory, nftDT and DT instances and create a new NFT', async () => {
|
it('should initialize NFTFactory, nftDT and DT instances and create a new NFT', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user