cyfuer

Jun 24, 2022

学习笔记:《Full Stack Blockchain Lesson 3:Remix Storage Factory》

 

Getting Started

  1. Go to Remix
  1. Paste the code from SimpleStorage.solStorageFactory.sol, and ExtraStorage.sol into a new file in Remix
  1. Hit Compile
  1. Hit Deploy for whatever contract you want.
 
SimpleStorage.sol
 
 
StorageFactory.sol
 
ExtraStorage.sol
 

Introduction

Factory Pattern

Basic Solidity: Importing Contracts into other Contracts

 

Composibility

The ability for contracts to seamlessly interact with each other is what s known as composability.
 

Solidity new keyword

 

Importing Code in solidity

Basic Solidity: Interacting with other Contracts

To interact, you always need: ABI + Address

 

ABI

notion image

Basic Solidity: Inheritance & Overrides

 

Inheritance

 

Override & Virtual Keyword

add virtual keyword to the store function that to be override in SimpleStorage.sol
 
add override to store function that override

Copyright © 2025 cyfuer

logo