Skip to content

meanMonk/solidity-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Learning Solidity

References:

DataTypes:

  • bool
  • string
  • uint
  • int
  • struct
  • [] // variable length
  • [3] // array with defined length

Contracts:

  • contract ContractName

Declaration:

uint256 public favNumber;

People public person;

struct People {
  uint256 favNumber;
  string name;
}

Functions:

  • function fnName

Storage type declaration:

  • memory : only for args
  • calldata : only for args valid inside the function and get cleanup
  • storage

Importing:

  • import
import './simpleStorage.sol'

Deploy Contracts:

  • Deploying contracts from other contracts.

Inheritance:

  • is

Overriding:

  • virtual : function that we can override
  • override : function which works as overriden

About

Learning from various resource.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published