Skip to content

Conversation

caballoninja
Copy link
Contributor

@caballoninja caballoninja commented Apr 28, 2025

Docs Checklist

Please ensure you have addressed documentation updates if needed as part of this PR:

  • I have created a separate PR on the sequence docs repository for documentation updates: Link to docs PR
  • No documentation update is needed for this change.

@caballoninja caballoninja requested a review from a team April 28, 2025 14:00
@caballoninja caballoninja requested a review from a team as a code owner April 28, 2025 14:00
@caballoninja caballoninja changed the base branch from master to v2 April 28, 2025 14:01
}


FString UTransakCheckout::BuildNFTCheckoutLinkFromERC1155(UERC1155SaleContract* SaleContract, const FTransakNFTData TransakNFTData, const FTransakContractId& ContractId, const TArray<uint8>& Data, const TArray<FString>& Proof)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to make the Proof and Data parameters optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not if its to be blueprint compatible

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. Could we maybe add a tooltip to the BP and add some C++ overload functions?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is there a blueprint for this already?

Base automatically changed from v2 to master May 8, 2025 10:24
Copy link
Contributor

@BellringerQuinn BellringerQuinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!


for (const FString& TokenIDString : TransakNFTData.TokenID)
{
int32 ParsedTokenId = FCString::Atoi(*TokenIDString);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a random thought - what do you think about making a wrapper function for converting strings to ints with a more readable name in a future PR? I know that this is a built-in function that should be rather well-known to C/C++ devs, but maybe would be worthwhile anyways as we wouldn't have to do as much mental gymnastics? Or is that just unnecessary overhead? I'm not really sure... What do you think?

#include "TransakNftData.generated.h"

UENUM(BlueprintType)
enum class ENFTType : uint8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: maybe rename to ENftType to make it easier to read? When I first read it I thought the E was part of the word (curse you Unreal and your one-letter prefixes on class names!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants