mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
rename createNftErc20WithDispenser to createNftWithDatatokenWithDispenser
This commit is contained in:
parent
77fcfe94f5
commit
ba8ea90a20
@ -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<TransactionReceipt>} 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<TransactionReceipt>} transaction receipt
|
||||
*/
|
||||
public async createNftErc20WithDispenser(
|
||||
public async createNftWithDatatokenWithDispenser(
|
||||
address: string,
|
||||
nftCreateData: NftCreateData,
|
||||
ercParams: DatatokenCreateParams,
|
||||
|
@ -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,
|
||||
|
@ -288,7 +288,7 @@ describe('Publish tests', async () => {
|
||||
allowedSwapper: ZERO_ADDRESS
|
||||
}
|
||||
|
||||
const bundleNFT = await factory.createNftErc20WithDispenser(
|
||||
const bundleNFT = await factory.createNftWithDatatokenWithDispenser(
|
||||
publisherAccount,
|
||||
nftParams,
|
||||
datatokenParams,
|
||||
|
@ -218,7 +218,7 @@ describe('Nft Factory test', () => {
|
||||
allowedSwapper: ZERO_ADDRESS
|
||||
}
|
||||
|
||||
const txReceipt = await nftFactory.createNftErc20WithDispenser(
|
||||
const txReceipt = await nftFactory.createNftWithDatatokenWithDispenser(
|
||||
nftOwner,
|
||||
nftData,
|
||||
ercParams,
|
||||
|
Loading…
x
Reference in New Issue
Block a user