2022-10-10Web300

Lesson 3: Remix Storage Factory

⌨️ (03:05:34) Lesson 3: Remix Storage Factory

💻 Code: https://github.com/PatrickAlphaC/storage-factory-fcc

Introduction

Basic Solidity: Importing Contracts into other Contracts

Basic Solidity: Interacting with other Contracts

  • To interact, you always need: ABI + Address
  • ABI

Basic Solidity: Inheritance & Overrides

2022-10-10Web300

Lesson 2: Welcome to Remix! Simple Storage

⌨️ (02:01:16) Lesson 2: Welcome to Remix! Simple Storage

💻 Code: https://github.com/PatrickAlphaC/simple-storage-fcc

Introduction

Setting Up Your First Contract

2022-10-10Web300

此篇文章版权属于@毛超颖 所有。其他媒体、网站或个人转载使用时不得进行商业性的原版原式的转载,也不得歪曲和篡改本网站所发布的内容。 由于本人也是刚入圈的小白,如有错误,欢迎指正~

学习视频:系统学习区块链、Solidity和前后端全栈Web3开发

License声明:

// SPDX-License-Identifier: MIT

指定版本:

pragma solidity ^0.8.0;

导入其他合约

import './SimpleStorage.sol';

继承

contract ExtraStorage is SimpleStorage{
    function store(uint256 _favoriteNumber) public override {
        favoriteNumber = _favoriteNumber + 3;
    }
}