nspcc-dev / neofs-contract

NeoFS smart-contract
Other
9 stars 17 forks source link

Ensure all fields of returned exported structures are public #349

Closed AnnaShaleva closed 11 months ago

AnnaShaleva commented 11 months ago

All structures returned by contracts should have only public fields. It will save us from unaccessible RPC binding structure fields like https://github.com/nspcc-dev/neofs-contract/blob/84ff5d244f6913987c2fb7dc3e2adfb5dfa81381/rpc/container/rpcbinding.go#L27-L32 Until the https://github.com/nspcc-dev/neo-go/issues/3083 is resolved. And in general, it's just a good practice.