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
Introduce the AssetId
type
#4955
Conversation
This is a non-trivial change and involves breaking changes to existing libraries, applications, the rust SDK, the typescript SDK, and the indexer. |
AssetId
type
contract id needs to import asset id and assetid needs to import contract id, rip lol |
Co-authored-by: Braqzen <103777923+Braqzen@users.noreply.github.com>
Co-authored-by: Braqzen <103777923+Braqzen@users.noreply.github.com>
Co-authored-by: Braqzen <103777923+Braqzen@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bitzoic has recently raised an issue for the keccak256
hashing so I guess we can leave it for that instead of this PR
There is a bunch of lines like this one:
in test/src/sdk-harness/test_artifacts/context_caller_contract/src/main.sw I'm not sure if it's related to this PR or not. |
Description
Change AssetId from alias to struct. Allows implementing of methods. Also moved the helper functions into the struct as methods.
Checklist
Breaking*
orNew Feature
labels where relevant.