Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering the Lovelace Asset Id within runtimeLifecycle.payouts.available() #153

Open
nhenin opened this issue Jan 3, 2024 Discussed in #151 · 0 comments
Open

Filtering the Lovelace Asset Id within runtimeLifecycle.payouts.available() #153

nhenin opened this issue Jan 3, 2024 Discussed in #151 · 0 comments
Labels
bug Something isn't working

Comments

@nhenin
Copy link
Collaborator

nhenin commented Jan 3, 2024

The first implementation of runtimeLifecycle.payouts.available() was naively considering all the asset Ids within the connected wallet as "Potential" Role tokens.

This issue is about considering all the asset Ids within the connected wallet as "Potential" Role tokens expected the Lovelace one.

Discussed in #151

Originally posted by albert-kevin December 28, 2023
roleToken for example policyId.policyName
for example: 10137ccc04dc177e9af17c7800f3fbe86855c63d22fad293b8d98695.Party1
and somebody created a contract with empty policyId and empty name

             (Role "")
             (Role "")
             (Token "" "")
             https://preview.marlowescan.com/contractView?tab=state&contractId=71f42745070424400d0c8fb3d5df8302e53dec10d2c525c038d21c298bd14cdf%231
             
             when you use the SDK code runtimeLifecycle.payouts.available()
             it searches for both your own wallet tokens and empty tokens... but the empty tokens are not from your wallet, so what about it ?
             
             here you see the request

image

@nhenin nhenin added this to the [#0] Release 0.3.0-beta milestone Jan 3, 2024
@nhenin nhenin added the bug Something isn't working label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant