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

general renaming in NFTFactory

This commit is contained in:
Miquel A. Cabot 2022-06-14 10:26:46 +02:00
parent 745e11f3b9
commit d2b966640a

View File

@ -100,24 +100,24 @@ export class NftFactory extends SmartContractWithAddress {
* @return {Promise<number>} Number of NFT created from this factory
*/
public async getCurrentNFTCount(): Promise<number> {
const trxReceipt = await this.contract.methods.getCurrentNFTCount().call()
return trxReceipt
const nftCount = await this.contract.methods.getCurrentNFTCount().call()
return nftCount
}
/** Get Current Datatoken Count
* @return {Promise<number>} Number of DTs created from this factory
*/
public async getCurrentTokenCount(): Promise<number> {
const trxReceipt = await this.contract.methods.getCurrentTokenCount().call()
return trxReceipt
const tokenCount = await this.contract.methods.getCurrentTokenCount().call()
return tokenCount
}
/** Get Factory Owner
* @return {Promise<string>} Factory Owner address
*/
public async getOwner(): Promise<string> {
const trxReceipt = await this.contract.methods.owner().call()
return trxReceipt
const owner = await this.contract.methods.owner().call()
return owner
}
/** Get Current NFT Template Count