Skip to content

in this code, we can increase or decrease number that starts from zero.

Notifications You must be signed in to change notification settings

ElahiAli/Simple_Counter_solidity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

in this code we have tree func to build this app:

  1. get ---> to get current count

    • everyone see this func and can call it and have view of it
  2. increase ---> to increment current count by _elevator argument --->

    • everyone can see this function and just can call it
  3. decrease---> to decrement current count by reducer argument

    • everyone can see this function and just can call it

if our current count is 0 we can decrease it because the result will be negative

About

in this code, we can increase or decrease number that starts from zero.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%