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

Beneficiary vs assetOwner field name for transitions #151

Closed
Matrix-Zhang opened this issue Jan 22, 2024 · 4 comments · Fixed by #162
Closed

Beneficiary vs assetOwner field name for transitions #151

Matrix-Zhang opened this issue Jan 22, 2024 · 4 comments · Fixed by #162
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Matrix-Zhang
Copy link

Error: field name beneficiary is unknown to the contract interface
@dr-orlovsky
Copy link
Member

I need details when this error happens and what leads to it

@Matrix-Zhang
Copy link
Author

I need details when this error happens and what leads to it

after transfer RGB20,

rgb -d .alice -w default history-fungible <contract_id> RGB20

rgb runtime error: field name beneficiary is unknown to the contract interface

@dr-orlovsky
Copy link
Member

Ok, the issue is related to the fact that RGB wallet uses default assignment from the RGB20 interface to access the state data. It uses assingment alias ("beneficiary") and not state name ("assetOwner"), hence the error.

Moving to RGB standard library where it belongs to

@dr-orlovsky dr-orlovsky transferred this issue from RGB-WG/rgb Feb 27, 2024
@dr-orlovsky dr-orlovsky self-assigned this Feb 27, 2024
@dr-orlovsky dr-orlovsky added the bug Something isn't working label Feb 27, 2024
@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Feb 27, 2024
@dr-orlovsky dr-orlovsky moved this to In progress in RGB release v0.11 Feb 27, 2024
@dr-orlovsky dr-orlovsky changed the title history-fungible error Beneficiary vs assetOwner field name for transitions Feb 27, 2024
@dr-orlovsky dr-orlovsky linked a pull request Mar 26, 2024 that will close this issue
15 tasks
@dr-orlovsky
Copy link
Member

This should be fixed when #162 is merged

@dr-orlovsky dr-orlovsky mentioned this issue Mar 26, 2024
15 tasks
@github-project-automation github-project-automation bot moved this from In progress to Done in RGB release v0.11 Mar 29, 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
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants