Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: clarity 3 #12

Merged
merged 4 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Clarinet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ requirements = []

[contracts.counter]
path = 'contracts/counter.clar'
clarity_version = 2
epoch = 2.5
clarity_version = 3
epoch = 3.0

[repl.analysis]
passes = ['check_checker']
Expand Down
2 changes: 1 addition & 1 deletion contracts/counter.clar
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

(define-read-only (get-count-at-block (block uint))
(ok (at-block
(unwrap! (get-block-info? id-header-hash block) ERR_BLOCK_NOT_FOUND)
(unwrap! (get-stacks-block-info? id-header-hash block) ERR_BLOCK_NOT_FOUND)
(var-get count)
))
)
Expand Down
6 changes: 3 additions & 3 deletions deployments/default.devnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ plan:
- contract-publish:
contract-name: counter
expected-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
cost: 10760
cost: 10830
path: contracts/counter.clar
anchor-block-only: true
clarity-version: 2
epoch: "2.5"
clarity-version: 3
epoch: "3.0"
4 changes: 2 additions & 2 deletions deployments/default.simnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plan:
contract-name: counter
emulated-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
path: contracts/counter.clar
clarity-version: 2
clarity-version: 3
- emulated-contract-call:
contract-id: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.counter
emulated-sender: ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5
Expand All @@ -65,4 +65,4 @@ plan:
mstx-amount: 2222222
cost: 1000
anchor-block-only: true
epoch: "2.5"
epoch: "3.0"
Loading