Skip to content

Commit

Permalink
Convert to contract functions. Remove abiEnterprise.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Sep 3, 2024
1 parent 8cfbeae commit f751cc2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/contracts/AccessList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

/**
Expand Down Expand Up @@ -64,7 +63,7 @@ export class AccessListContract extends SmartContract {
estGas,
this.signer,
this.config?.gasFeeMultiplier,
accessListContract.mint,
accessListContract.functions.mint,
user,
tokenUri
)
Expand Down Expand Up @@ -93,7 +92,7 @@ export class AccessListContract extends SmartContract {
estGas,
this.signer,
this.config?.gasFeeMultiplier,
accessListContract.batchMint,
accessListContract.functions.batchMint,
users,
tokenUris
)
Expand All @@ -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
Expand Down

0 comments on commit f751cc2

Please sign in to comment.