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

[DOC] Add code snippet for getData call from solidity contract #925

Open
Hugoo opened this issue Mar 17, 2024 · 0 comments
Open

[DOC] Add code snippet for getData call from solidity contract #925

Hugoo opened this issue Mar 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Hugoo
Copy link
Contributor

Hugoo commented Mar 17, 2024

https://docs.lukso.tech/learn/smart-contract-developers/retrieve-token-type#implementation

We should add a solidity function call which shows how to query this data.

Right now it says basically:

Here is the key _LSP4_TOKEN_TYPE_DATA_KEY use getData and deal with it. Good luck my friend.

So let's add something like:

import {ERC725YCore} from "@erc725/smart-contracts/contracts/ERC725YCore.sol";

// ...

bytes memory tokenTypeDataKey = ERC725YCore._getData( _LSP4_TOKEN_TYPE_DATA_KEY);
@Hugoo Hugoo added the enhancement New feature or request label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant