Skip to content

Commit

Permalink
fix: use testnet instead of mainnet addresses
Browse files Browse the repository at this point in the history
This helps the tests pass locally and should work with the Clarinet-2.5 toml file in the action. Mainnet can be used but need to be added as requirements and the requirements files in the cache need to be uploaded or the GH runner can't see/create them correctly.
  • Loading branch information
whoabuddy committed Aug 1, 2024
1 parent 5e04323 commit cb6070f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Clarinet-2.5.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ path = ".requirements"

# MAINNET REQUIREMENTS

[[project.requirements]]
contract_id = "SP000000000000000000002Q6VF78.pox"

[[project.requirements]]
contract_id = "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard"

Expand Down
8 changes: 4 additions & 4 deletions contracts/extensions/ccd002-treasury-v3.clar
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
(impl-trait .stacking-trait.stacking-trait)
(impl-trait .ccd002-trait.ccd002-treasury-trait)
;; MAINNET: 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.sip-010-trait
(use-trait ft-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.sip-010-trait)
(use-trait ft-trait 'ST1NXBK3K5YYMD6FD41MVNP3JS1GABZ8TRVX023PT.sip-010-trait-ft-standard.sip-010-trait)
;; MAINNET: 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait
(use-trait nft-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(use-trait nft-trait 'ST1NXBK3K5YYMD6FD41MVNP3JS1GABZ8TRVX023PT.nft-trait.nft-trait)

;; CONSTANTS

Expand Down Expand Up @@ -159,7 +159,7 @@
})
;; MAINNET: 'SP000000000000000000002Q6VF78.pox-4
;; TESTNET: 'ST000000000000000000002AMW42H.pox-4
(match (as-contract (contract-call? 'SP000000000000000000002Q6VF78.pox-4 delegate-stx maxAmount to none none))
(match (as-contract (contract-call? 'ST000000000000000000002AMW42H.pox-4 delegate-stx maxAmount to none none))
success (ok success)
err (err (to-uint err))
)
Expand All @@ -176,7 +176,7 @@
})
;; MAINNET: 'SP000000000000000000002Q6VF78.pox-4
;; TESTNET: 'ST000000000000000000002AMW42H.pox-4
(match (as-contract (contract-call? 'SP000000000000000000002Q6VF78.pox-4 revoke-delegate-stx))
(match (as-contract (contract-call? 'ST000000000000000000002AMW42H.pox-4 revoke-delegate-stx))
success (begin (print success) (ok true))
err (err (to-uint err))
)
Expand Down

0 comments on commit cb6070f

Please sign in to comment.