Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename method #60

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,16 +400,16 @@ export abstract class Minter {
return whitelistTx;
}

/** Creates a delist transaction for the contract
/** Creates a remove whitelist transaction for the contract
* @param senderAddress The address of the sender, must be the admin of the contract
* @param addresses The addresses to delist
* @param addresses The addresses to remove from the whitelist
*/
delist(
removeWhitelist(
senderAddress: IAddress,
addresses: string[],
extraGas = 0
): Transaction {
const delistTx = new Transaction({
const removeWhitelistTx = new Transaction({
value: 0,
data: new ContractCallPayloadBuilder()
.setFunction(new ContractFunction('removeWhiteListSpots'))
Expand All @@ -422,7 +422,7 @@ export abstract class Minter {
sender: senderAddress,
chainID: this.chainID
});
return delistTx;
return removeWhitelistTx;
}

/** Creates a set mint time limit transaction for the contract
Expand Down