NFTsTv / Broadcastr

Reimagining live content creation by empowering creators.
https://broadcastr.xyz
4 stars 4 forks source link

As a content creator I want to see the number of subscribers I have #59

Closed Mario-SO closed 1 year ago

Mario-SO commented 1 year ago

This is done simply by checking the current token id of the Castr contract.

Mario-SO commented 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.

Mario-SO commented 1 year ago

Missing merge, but I think there might be merge conflicts. @pabloVoorvaart confirm this please.