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,
network?: string | number,
config?: Config,
abi?: AbiItem[],
abiEnterprise?: AbiItem[]
abi?: AbiItem[]
) {
super(signer, network, config, abi)
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,
this.signer,
this.config?.gasFeeMultiplier,
accessListContract.mint,
accessListContract.functions.mint,
user,
tokenUri
)
@ -93,7 +92,7 @@ export class AccessListContract extends SmartContract {
estGas,
this.signer,
this.config?.gasFeeMultiplier,
accessListContract.batchMint,
accessListContract.functions.batchMint,
users,
tokenUris
)
@ -113,7 +112,7 @@ export class AccessListContract extends SmartContract {
estGas,
this.signer,
this.config?.gasFeeMultiplier,
accessListContract.burn,
accessListContract.functions.burn,
tokenId
)
return <ReceiptOrEstimate<G>>trxReceipt