mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix test
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
60ffa8b271
commit
1b93d86df5
@ -43,6 +43,7 @@ describe('Dispenser flow', () => {
|
||||
it('should initialize Dispenser class', async () => {
|
||||
DispenserClass = new Dispenser(
|
||||
web3,
|
||||
8996,
|
||||
contracts.dispenserAddress,
|
||||
DispenserTemplate.abi as AbiItem[]
|
||||
)
|
||||
@ -87,7 +88,7 @@ describe('Dispenser flow', () => {
|
||||
})
|
||||
|
||||
it('Make user2 minter', async () => {
|
||||
datatoken = new Datatoken(web3, ERC20Template.abi as AbiItem[])
|
||||
datatoken = new Datatoken(web3, 8996, ERC20Template.abi as AbiItem[])
|
||||
await datatoken.addMinter(dtAddress, factoryOwner, user2)
|
||||
assert((await datatoken.getDTPermissions(dtAddress, user2)).minter === true)
|
||||
})
|
||||
|
@ -118,6 +118,7 @@ describe('Fixed Rate unit test', () => {
|
||||
fixedRate = new FixedRateExchange(
|
||||
web3,
|
||||
fixedRateAddress,
|
||||
8996,
|
||||
FixedRate.abi as AbiItem[],
|
||||
contracts.oceanAddress
|
||||
)
|
||||
@ -438,6 +439,7 @@ describe('Fixed Rate unit test', () => {
|
||||
fixedRate = new FixedRateExchange(
|
||||
web3,
|
||||
fixedRateAddress,
|
||||
8996,
|
||||
FixedRate.abi as AbiItem[],
|
||||
contracts.oceanAddress
|
||||
)
|
||||
|
@ -59,10 +59,10 @@ describe('SideStaking unit test', () => {
|
||||
sideStakingAddress = contracts.sideStakingAddress
|
||||
|
||||
// initialize Pool instance
|
||||
pool = new Pool(web3, PoolTemplate.abi as AbiItem[])
|
||||
pool = new Pool(web3, 8996, PoolTemplate.abi as AbiItem[])
|
||||
assert(pool != null)
|
||||
//
|
||||
sideStaking = new SideStaking(web3, SSContract.abi as AbiItem[])
|
||||
sideStaking = new SideStaking(web3, 8996, SSContract.abi as AbiItem[])
|
||||
assert(sideStaking != null)
|
||||
|
||||
daiContract = new web3.eth.Contract(MockERC20.abi as AbiItem[], contracts.daiAddress)
|
||||
|
@ -62,6 +62,7 @@ describe('Datatoken', () => {
|
||||
nftFactory = new NftFactory(
|
||||
contracts.erc721FactoryAddress,
|
||||
web3,
|
||||
8996,
|
||||
ERC721Factory.abi as AbiItem[]
|
||||
)
|
||||
const nftData: NftCreateData = {
|
||||
@ -74,7 +75,7 @@ describe('Datatoken', () => {
|
||||
}
|
||||
|
||||
nftAddress = await nftFactory.createNFT(nftOwner, nftData)
|
||||
nftDatatoken = new Nft(web3, ERC721Template.abi as AbiItem[])
|
||||
nftDatatoken = new Nft(web3, 8996, ERC721Template.abi as AbiItem[])
|
||||
})
|
||||
|
||||
it('#createERC20 - should create a new ERC20 DT from NFT contract', async () => {
|
||||
@ -98,6 +99,7 @@ describe('Datatoken', () => {
|
||||
it('should initialize DT20 Instance', async () => {
|
||||
datatoken = new Datatoken(
|
||||
web3,
|
||||
8996,
|
||||
ERC20Template.abi as AbiItem[],
|
||||
ERC20TemplateEnterprise.abi as AbiItem[]
|
||||
)
|
||||
|
@ -39,6 +39,7 @@ describe('NFT', () => {
|
||||
nftFactory = new NftFactory(
|
||||
contracts.erc721FactoryAddress,
|
||||
web3,
|
||||
8996,
|
||||
ERC721Factory.abi as AbiItem[]
|
||||
)
|
||||
const nftData: NftCreateData = {
|
||||
@ -51,7 +52,7 @@ describe('NFT', () => {
|
||||
}
|
||||
|
||||
nftAddress = await nftFactory.createNFT(nftOwner, nftData)
|
||||
nftDatatoken = new Nft(web3, ERC721Template.abi as AbiItem[])
|
||||
nftDatatoken = new Nft(web3, 8996, ERC721Template.abi as AbiItem[])
|
||||
})
|
||||
it('#getTokenURI', async () => {
|
||||
const tokenURI = await nftDatatoken.getTokenURI(nftAddress, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user