Closed Mario-SO closed 1 year ago
text: string | number;
.
.
.
const StreamDetails = ({
details,
address,
}: {
details: Castr & CastrContractAttributes;
address: string;
}).
.
.
<DetailBox title="Subscribers" text={details.currentTokenId} />
.
.
.
Can't figure out the mistake, I'm sure it has something to do with types, still debugging.
EDIT: As imagined, this goes all the way back to the useCastr component. The getMetadata function doesn't return currentTokenId
variable from the contract. Thought about doing a contractRead
in the streamDetails.tsx
component just to test if I could get the desired parameter this way, but getting some errors... Still debugging
EDIT 2: Wasn't able to finish this feature, tried a bunch of stuff, this is really simple, we just need to read the currentTokenId
contract variable. This projects' front-end surpassed me long ago. Need to learn a ton of React to even add this simple thing. @pabloVoorvaart continue with this whenever you can. Will look onto other open issues.
Missing merge, but I think there might be merge conflicts. @pabloVoorvaart confirm this please.
This is done simply by checking the current token id of the Castr contract.