diff --git a/src/contracts/factories/NFTFactory.ts b/src/contracts/factories/NFTFactory.ts index 1088d7b3..ea66a8c5 100644 --- a/src/contracts/factories/NFTFactory.ts +++ b/src/contracts/factories/NFTFactory.ts @@ -746,14 +746,14 @@ export class NftFactory extends SmartContractWithAddress { return trxReceipt } - /** Estimate gas cost for createNftWithDatatokenWithFixedRate method + /** Estimate gas cost for estGasCreateNftWithDatatokenWithDispenser method * @param address Caller address * @param nftCreateData input data for NFT Creation * @param ercParams input data for Datatoken Creation * @param dispenserParams input data for Dispenser Creation * @return {Promise} transaction receipt */ - public async estGasCreateNftErc20WithDispenser( + public async estGasCreateNftWithDatatokenWithDispenser( address: string, nftCreateData: NftCreateData, ercParams: DatatokenCreateParams, @@ -770,7 +770,7 @@ export class NftFactory extends SmartContractWithAddress { } /** - * @dev createNftErc20WithDispenser + * @dev createNftWithDatatokenWithDispenser * Creates a new NFT, then a Datatoken, then a Dispenser, all in one call * Use this carefully, because if Dispenser creation fails, you are still going to pay a lot of gas * @param address Caller address @@ -779,7 +779,7 @@ export class NftFactory extends SmartContractWithAddress { * @param dispenserParams input data for Dispenser Creation * @return {Promise} transaction receipt */ - public async createNftErc20WithDispenser( + public async createNftWithDatatokenWithDispenser( address: string, nftCreateData: NftCreateData, ercParams: DatatokenCreateParams, diff --git a/test/integration/CodeExamples.test.ts b/test/integration/CodeExamples.test.ts index 7604e1cd..cc34a5ac 100644 --- a/test/integration/CodeExamples.test.ts +++ b/test/integration/CodeExamples.test.ts @@ -766,7 +766,7 @@ describe('Marketplace flow tests', async () => { allowedSwapper: ZERO_ADDRESS } - const tx = await factory.createNftErc20WithDispenser( + const tx = await factory.createNftWithDatatokenWithDispenser( publisherAccount, nftParams, datatokenParams, diff --git a/test/integration/PublishFlows.test.ts b/test/integration/PublishFlows.test.ts index b92af3e3..d7013499 100644 --- a/test/integration/PublishFlows.test.ts +++ b/test/integration/PublishFlows.test.ts @@ -288,7 +288,7 @@ describe('Publish tests', async () => { allowedSwapper: ZERO_ADDRESS } - const bundleNFT = await factory.createNftErc20WithDispenser( + const bundleNFT = await factory.createNftWithDatatokenWithDispenser( publisherAccount, nftParams, datatokenParams, diff --git a/test/unit/factories/NftFactory.test.ts b/test/unit/factories/NftFactory.test.ts index 80bc4eae..92bcc556 100644 --- a/test/unit/factories/NftFactory.test.ts +++ b/test/unit/factories/NftFactory.test.ts @@ -218,7 +218,7 @@ describe('Nft Factory test', () => { allowedSwapper: ZERO_ADDRESS } - const txReceipt = await nftFactory.createNftErc20WithDispenser( + const txReceipt = await nftFactory.createNftWithDatatokenWithDispenser( nftOwner, nftData, ercParams,