This post provides a cheat sheet on the visibility of functions in Solana smart contracts, comparing Rust & Anchor on Solana with Solidity on Ethereum. It discusses the declaration, visibility, mutability, payability, parameters, return values, modifiers, and events of functions in Solidity. It also explains the visibility

9m read time From coinsbench.com
Post cover image
Table of contents
Solana / Ethereum: Function VisibilityTL;DRIntroductionSolidityVisibility in SolidityExample in SolidityRust & AnchorVisibility with Rust & AnchorExample with Rust & AnchorConclusionSide Notes:

Sort: