Skip to content

about - runtimeLifecycle.payouts.available() -> why does it search for empty roletokens too ? #151

Answered by nhenin
albert-kevin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi :-) Good catch :-)

Behind the scene, the function runtimeLifecycle.payouts.available() :

  1. reads the asset Ids from the connected wallet as "potential" role tokens
  2. calls the runtime rest client endpoint getHeadersByRange: Payouts.GETHeadersByRange with these "potential" role tokens

We don't filter the lovelaces which have an empty policyId and an empty token name... and so this is why you see "roleToken=.&"... It should be filtered out instead...

FYI, I've created #153 to solve this issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nstanford5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants