Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Update to make prepareClaim private
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj committed Aug 7, 2023
1 parent 64d9504 commit eb5a07c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thirdweb/erc721.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func (erc721 *ERC721) IsApproved(ctx context.Context, owner string, operator str
}

func (erc721 *ERC721) GetClaimInfo(ctx context.Context, address string) (*ClaimInfo, error) {
claimVerification, err := erc721.PrepareClaim(ctx, address, 0, false)
claimVerification, err := erc721.prepareClaim(ctx, address, 0, false)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -396,7 +396,7 @@ func (erc721 *ERC721) GetClaimIneligibilityReasons(ctx context.Context, quantity
}

if allowlistEntry != nil {
claimVerification, err := erc721.PrepareClaim(
claimVerification, err := erc721.prepareClaim(
ctx,
addressToCheck,
quantity,
Expand Down Expand Up @@ -898,7 +898,7 @@ func (erc721 *ERC721) ClaimTo(ctx context.Context, destinationAddress string, qu
func (erc721 *ERC721) PrepareClaimTo(ctx context.Context, destinationAddress string, quantity int) (*PreparedClaimTo, error) {
addressToClaim := erc721.helper.GetSignerAddress().Hex()

claimVerification, err := erc721.PrepareClaim(ctx, addressToClaim, quantity, true)
claimVerification, err := erc721.prepareClaim(ctx, addressToClaim, quantity, true)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -929,7 +929,7 @@ func (erc721 *ERC721) GetClaimArguments(
*ClaimArguments,
error,
) {
claimVerification, err := erc721.PrepareClaim(ctx, destinationAddress, quantity, false)
claimVerification, err := erc721.prepareClaim(ctx, destinationAddress, quantity, false)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -1001,7 +1001,7 @@ func (erc721 *ERC721) fetchNFTsByTokenId(ctx context.Context, tokenIds []*big.In
}


func (erc721 *ERC721) PrepareClaim(ctx context.Context, addressToClaim string, quantity int, handleApproval bool) (*ClaimVerification, error) {
func (erc721 *ERC721) prepareClaim(ctx context.Context, addressToClaim string, quantity int, handleApproval bool) (*ClaimVerification, error) {
active, err := erc721.ClaimConditions.GetActive(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit eb5a07c

Please sign in to comment.