17 - Inter-Contract Execution

In this video, we’re going to see how a contract can inherit variables from another contract. The code in the video is pragma 0.5.x, but the contract compiles with 0.8.x as well.

  1. BaseCaller.sol
  2. Shadowing Inherited Variables
  3. Calling Parent Contracts

Building from the previous lesson, we’ll now see how a contract can use .call and .delegatecall to interact with other contracts. The code in the video is pragma 0.5.x, but the contract compiles with 0.8.x as well.

  1. ContextSwitcher.sol
  2. .call — Solidity By Example
  3. .delegatecall — Solidity By Example
  4. Calling Other Contracts