mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
rename from erc20 to datatoken in NFT test
This commit is contained in:
parent
eedb1b4232
commit
df7cfdf231
@ -50,8 +50,8 @@ describe('NFT', () => {
|
|||||||
assert(tokenURI === nftData.tokenURI)
|
assert(tokenURI === nftData.tokenURI)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('#createDatatoken - should create a new ERC20 DT from NFT contract', async () => {
|
it('#createDatatoken - should create a new ERC20 Datatoken from NFT contract', async () => {
|
||||||
const erc20Address = await nftDatatoken.createDatatoken(
|
const dtAddress = await nftDatatoken.createDatatoken(
|
||||||
nftAddress,
|
nftAddress,
|
||||||
nftOwner,
|
nftOwner,
|
||||||
nftOwner,
|
nftOwner,
|
||||||
@ -64,10 +64,10 @@ describe('NFT', () => {
|
|||||||
nftData.symbol,
|
nftData.symbol,
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
assert(erc20Address !== null)
|
assert(dtAddress !== null)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('#createDatatoken - should fail to create a new ERC20 DT if not DatatokenDeployer', async () => {
|
it('#createDatatoken - should fail to create a new ERC20 Datatoken if not DatatokenDeployer', async () => {
|
||||||
try {
|
try {
|
||||||
await nftDatatoken.createDatatoken(
|
await nftDatatoken.createDatatoken(
|
||||||
nftAddress,
|
nftAddress,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user