Skip to content

abhi3700/substrate_sc_counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counter

Counter SC using ink!

Overview

  • A counter SC that can be incremented and decremented.
  • Functions:
    • new - Initializes the counter with the specified value.
    • default - Initializes the counter with the default value of 0.
    • inc - Increments the counter by 1.
    • dec - Decrements the counter by 1.
    • get_val - Returns the current value of the counter.

Test

cargo test

Build

cargo +nightly contract build

Deploy

About

Counter SC using ink! for a Substrate chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages