mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
refactor constants
This commit is contained in:
parent
16b83f0088
commit
319bad47e7
@ -17,7 +17,7 @@ import {
|
|||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
signHash
|
signHash
|
||||||
} from '../../../src'
|
} from '../../../src'
|
||||||
import { ProviderFees, FreCreationParams, FreOrderParams } from '../../../src/@types/'
|
import { ProviderFees, FreCreationParams, FreOrderParams } from '../../../src/@types'
|
||||||
|
|
||||||
describe('Datatoken', () => {
|
describe('Datatoken', () => {
|
||||||
let nftOwner: string
|
let nftOwner: string
|
||||||
@ -33,8 +33,8 @@ describe('Datatoken', () => {
|
|||||||
let fixedRateAddress: string
|
let fixedRateAddress: string
|
||||||
let exchangeId: string
|
let exchangeId: string
|
||||||
|
|
||||||
const nftName = 'NFTName'
|
const NFT_NAME = 'NFTName'
|
||||||
const nftSymbol = 'NFTSymbol'
|
const NFT_SYMBOL = 'NFTSymbol'
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
const accounts = await web3.eth.getAccounts()
|
const accounts = await web3.eth.getAccounts()
|
||||||
@ -63,8 +63,8 @@ describe('Datatoken', () => {
|
|||||||
ERC721Factory.abi as AbiItem[]
|
ERC721Factory.abi as AbiItem[]
|
||||||
)
|
)
|
||||||
const nftData: NftCreateData = {
|
const nftData: NftCreateData = {
|
||||||
name: nftName,
|
name: NFT_NAME,
|
||||||
symbol: nftSymbol,
|
symbol: NFT_SYMBOL,
|
||||||
templateIndex: 1,
|
templateIndex: 1,
|
||||||
tokenURI: 'https://oceanprotocol.com/nft/'
|
tokenURI: 'https://oceanprotocol.com/nft/'
|
||||||
}
|
}
|
||||||
@ -84,8 +84,8 @@ describe('Datatoken', () => {
|
|||||||
'0x0000000000000000000000000000000000000000',
|
'0x0000000000000000000000000000000000000000',
|
||||||
'0',
|
'0',
|
||||||
'10000',
|
'10000',
|
||||||
nftName,
|
NFT_NAME,
|
||||||
nftSymbol,
|
NFT_SYMBOL,
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
assert(datatokenAddress !== null)
|
assert(datatokenAddress !== null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user