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

Convert to contract functions. Remove abiEnterprise.

This commit is contained in:
mariacarmina 2024-09-03 13:56:35 +03:00
parent 8cfbeae0ce
commit f751cc270b

View File

@ -25,12 +25,11 @@ export class AccessListContract extends SmartContract {
signer: Signer, signer: Signer,
network?: string | number, network?: string | number,
config?: Config, config?: Config,
abi?: AbiItem[], abi?: AbiItem[]
abiEnterprise?: AbiItem[]
) { ) {
super(signer, network, config, abi) super(signer, network, config, abi)
this.signer = sapphire.wrap(signer) this.signer = sapphire.wrap(signer)
this.abiEnterprise = abiEnterprise || (AccessList.abi as AbiItem[]) this.abi = abi || this.getDefaultAbi()
} }
/** /**
@ -64,7 +63,7 @@ export class AccessListContract extends SmartContract {
estGas, estGas,
this.signer, this.signer,
this.config?.gasFeeMultiplier, this.config?.gasFeeMultiplier,
accessListContract.mint, accessListContract.functions.mint,
user, user,
tokenUri tokenUri
) )
@ -93,7 +92,7 @@ export class AccessListContract extends SmartContract {
estGas, estGas,
this.signer, this.signer,
this.config?.gasFeeMultiplier, this.config?.gasFeeMultiplier,
accessListContract.batchMint, accessListContract.functions.batchMint,
users, users,
tokenUris tokenUris
) )
@ -113,7 +112,7 @@ export class AccessListContract extends SmartContract {
estGas, estGas,
this.signer, this.signer,
this.config?.gasFeeMultiplier, this.config?.gasFeeMultiplier,
accessListContract.burn, accessListContract.functions.burn,
tokenId tokenId
) )
return <ReceiptOrEstimate<G>>trxReceipt return <ReceiptOrEstimate<G>>trxReceipt