1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

rm unused Nft class in Datatoken

This commit is contained in:
lacoop6tu 2021-12-14 12:49:36 -05:00
parent 5dde9f4da7
commit 7e935da179

View File

@ -7,7 +7,7 @@ import defaultDatatokensAbi from '@oceanprotocol/contracts/artifacts/contracts/t
import defaultDatatokensEnterpriseAbi from '@oceanprotocol/contracts/artifacts/contracts/templates/ERC20TemplateEnterprise.sol/ERC20TemplateEnterprise.json' import defaultDatatokensEnterpriseAbi from '@oceanprotocol/contracts/artifacts/contracts/templates/ERC20TemplateEnterprise.sol/ERC20TemplateEnterprise.json'
import { LoggerInstance, getFairGasPrice } from '../utils' import { LoggerInstance, getFairGasPrice } from '../utils'
import { FreOrderParams, FreCreationParams } from '../interfaces' import { FreOrderParams, FreCreationParams } from '../interfaces'
import { Nft } from "./NFT" //import { Nft } from "./NFT"
/** /**
* ERC20 ROLES * ERC20 ROLES
*/ */
@ -40,7 +40,7 @@ export class Datatoken {
public datatokensEnterpriseAbi: AbiItem | AbiItem[] public datatokensEnterpriseAbi: AbiItem | AbiItem[]
public web3: Web3 public web3: Web3
public startBlock: number public startBlock: number
public nft: Nft // public nft: Nft
/** /**
* Instantiate ERC20 DataTokens * Instantiate ERC20 DataTokens
@ -58,7 +58,7 @@ export class Datatoken {
this.datatokensEnterpriseAbi = this.datatokensEnterpriseAbi =
datatokensEnterpriseAbi || (defaultDatatokensEnterpriseAbi.abi as AbiItem[]) datatokensEnterpriseAbi || (defaultDatatokensEnterpriseAbi.abi as AbiItem[])
this.startBlock = startBlock || 0 this.startBlock = startBlock || 0
this.nft = new Nft(this.web3) // this.nft = new Nft(this.web3)
} }
/** /**
@ -641,7 +641,7 @@ export class Datatoken {
if (await this.isERC20Deployer(dtAddress,address) !== true) { if (await this.isERC20Deployer(dtAddress,address) !== true) {
throw new Error(`Caller is not ERC20Deployer`) throw new Error(`Caller is not ERC20Deployer`)
} }
const estGas = await this.estGasRemovePaymentManager( const estGas = await this.estGasRemovePaymentManager(
dtAddress, dtAddress,
address, address,