Skip to content

Commit

Permalink
feat: cairo1 array, fix invoke response, hash separate test
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Apr 17, 2023
1 parent e0d75c1 commit 4637cd7
Show file tree
Hide file tree
Showing 8 changed files with 4,567 additions and 25 deletions.
18 changes: 18 additions & 0 deletions __mocks__/cairo/hash/hash.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#[contract]
mod HelloStarknet {
struct Storage {
balance: felt252,
}

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

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

0 comments on commit 4637cd7

Please sign in to comment.