solang icon indicating copy to clipboard operation
solang copied to clipboard

Solana: make anchor account.fetch() work

Open seanyoung opened this issue 2 years ago • 3 comments

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.

seanyoung avatar Jul 07 '23 11:07 seanyoung

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

LucasSte avatar Sep 15 '23 19:09 LucasSte

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

seanyoung avatar Sep 20 '23 14:09 seanyoung

This could be related #933

seanyoung avatar Sep 20 '23 14:09 seanyoung