Summary
Keywords
Full Transcript
#solidity #ethereum #blockchain Solidity Programming Course - Part 17.2 ❤️ This video (0:00) is part 2 of the functions series in the Solidity Programming course, focusing on function visibility and the use of view and pure keywords. The instructor demonstrates how to restrict function execution to save on gas costs and manage data access. Key Concepts Covered Function Visibility (1:39): Explains the differences between public (accessible by anyone) and private (accessible only within the same contract). View Functions (5:33): Used when a function reads from the blockchain state but does not modify it. Pure Functions (8:50): Used when a function does not read from or modify the blockchain state, only operating on inputs provided to it. Code Execution Example (11:46) View Function (12:05): Adds user input to a state variable without modifying the state. Private Pure Function (12:35): Performs calculations without accessing state variables. It cannot be called directly from outside the contract. Helper Function (13:50): A public function that demonstrates how a private function can still be called from within the same contract. ❤️❤️ Resources 📑❤️❤️ Github: https://github.com/akshaykurhekar/solidity-programming ❤️❤️ Topic Covered 🚀❤️ 1. Function Visibility 2. View 3. Pure 4. Code Execution Playlists 🔔❤️: https://www.youtube.com/playlist?list=PLTqJEAOVD7bpHR2CTaFVd9mJMZQYDF7ah https://www.youtube.com/playlist?list=PLTqJEAOVD7brZG5sLww_XuGEJTYRv1hm1 https://youtube.com/playlist?list=PLTqJEAOVD7boUDVH0WHY6zdY2VpZNQmh5&si=U6X8P3hzIButcslF https://www.youtube.com/playlist?list=PLTqJEAOVD7bqy7ll24DQeS2rs9WtDHQiC https://www.youtube.com/playlist?list=PLTqJEAOVD7bqEUavfK3e2Np2vHhKtBXO- ❤️🚀 Social Handle❤️🌐 You can Follow me on: IinkedIn : https://www.linkedin.com/in/akshay-kurhekar-64438a168/ Instagram: https://www.instagram.com/akshay_kurhekar/ Dev Community: https://dev.to/akshaykurhekar So, what are you waiting for? Hit the subscribe 🔔 button, share 🔊 this video with your friends, and don't forget to smash that like 👍 button. I'll see you in the next video. Until then, ❤️JAI HIND! ❤️
