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

Solana: make anchor account.fetch() work #1435

Open
seanyoung opened this issue Jul 7, 2023 · 3 comments
Open

Solana: make anchor account.fetch() work #1435

seanyoung opened this issue Jul 7, 2023 · 3 comments
Labels
solana The Solana target

Comments

@seanyoung
Copy link
Contributor

Anchor can decode the fields in the account data of anchor rust programs. The metadata contains a list of fields. Make this work with Solidity.

A complication is that Anchor uses borsh encoding for the account data. Solidity can't use borsh encoding for this, as we want to update dynamic length items in place (e.g. strings) without re-encoding everything.

@xermicus xermicus added the solana The Solana target label Jul 7, 2023
@LucasSte LucasSte added this to the Prepare for Solana Hackathon milestone Jul 7, 2023
@LucasSte
Copy link
Contributor

This is the same thing as in #541 and #1192

@seanyoung
Copy link
Contributor Author

We could merge this work with walking the account storage directly without copying. This work may change the storage layout.

@seanyoung
Copy link
Contributor Author

This could be related #933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solana The Solana target
Projects
None yet
Development

No branches or pull requests

4 participants
@seanyoung @xermicus @LucasSte and others