52- Contract Interactions 4: "contract" variables

Опубликовано: 29 Сентябрь 2024
на канале: Soft.Tomatoes
79
4

CONTRACT INTERACTIONS 4: "contract" variables

Are you interested in learning how to interact with other contracts using Solidity? In this video, we will explore the use of "contract variables" in Solidity, which allow us to have access to the functions of another contract.

We will be using Contract B and Contract A as an example. By deploying Contract A and Contract B, we will show you how to change the state of Contract A, without affecting the state of Contract B.

With the help of an import statement, we can easily access the functions and variables of Contract A, including internal, external, and public ones.

This video will provide you with a step-by-step guide on how to use "contract variables" in your Solidity projects. Don't miss out on this opportunity to expand your Solidity knowledge and become a better blockchain developer.

SOME MORE POINTS ABOUT CONTRACT VARIABLE METHOD:

1- Contract A must be deployed.
1 - Contract B must be deployed.

2 - State of Contract A changes.
2 - State of Contract B does not change.

3- We can use functions and variables of Contract A (internal, external and public ones).

4- We need to have full access to the file of contract A.


We will create our Solidity smart contract by using Remix.

Github:
Contract A: https://github.com/abdulhakim-altunka...

Contract B: https://github.com/abdulhakim-altunka...

NOTE: All videos on this channel are for exercise purposes. For tutorial purposes I kindly advise you to watch great teachers below:

Solidity:
1) Smart Contract Programmer:
   / @smartcontractprogrammer  
2) Eat the Blocks:
   / @eattheblocks  
3) Dapp University:
   / @dappuniversity  

Node-React-Javascript:
1) The Net Ninja:
   / @netninja  
2) Dave Gray :
   / @davegrayteachescode  

For Comments & Questions:
[email protected]

Buy me a Coffee:
buymeacoff.ee/softtomato