Skip to content

Commit

Permalink
feat: compiledClassHash implementation working without cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Mar 10, 2023
1 parent ca86f12 commit 485793c
Show file tree
Hide file tree
Showing 8 changed files with 4,513 additions and 2 deletions.
18 changes: 18 additions & 0 deletions __mocks__/cairo/helloSiera/hello.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#[contract]
mod HelloStarknet {
struct Storage {
balance: felt,
}

// Increases the balance by the given amount.
#[external]
fn increase_balance(amount: felt) {
balance::write(balance::read() + amount);
}

// Returns the current balance.
#[view]
fn get_balance() -> felt {
balance::read()
}
}
Loading

0 comments on commit 485793c

Please sign in to comment.