diff --git a/projects/swaypad/src/main.sw b/projects/swaypad/src/main.sw index 19f35bf..f6566af 100644 --- a/projects/swaypad/src/main.sw +++ b/projects/swaypad/src/main.sw @@ -1,27 +1,27 @@ contract; -abi TestContract { +abi Counter { #[storage(read, write)] - fn increment_counter(amount: u64) -> u64; + fn increment(amount: u64) -> u64; #[storage(read)] - fn get_counter() -> u64; + fn get() -> u64; } storage { counter: u64 = 0, } -impl TestContract for Contract { +impl Counter for Contract { #[storage(read, write)] - fn increment_counter(amount: u64) -> u64 { + fn increment(amount: u64) -> u64 { let incremented = storage.counter.read() + amount; storage.counter.write(incremented); incremented } #[storage(read)] - fn get_counter() -> u64 { + fn get() -> u64 { storage.counter.read() } -} \ No newline at end of file +}