Skip to content

Commit

Permalink
fix: update response in trait def, h/t @hugocaillard
Browse files Browse the repository at this point in the history
  • Loading branch information
whoabuddy committed Feb 8, 2024
1 parent d97aa1a commit 067a4ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/stacks-m2m-trait-v1.clar
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(define-trait stacks-m2m-trait-v1
(
(set-payment-address (principal principal) (response bool uint)) ;; works
(add-resource ((string-utf8 50) (string-utf8 255) uint) (response bool uint)) ;; error
(delete-resource (uint) (response bool uint)) ;; works
(delete-resource-by-name ((string-utf8 50)) (response bool uint)) ;; works
(pay-invoice (uint (optional (buff 34))) (response bool uint))
(pay-invoice-by-resource-name ((string-utf8 50) (optional (buff 34))) (response bool uint))
(set-payment-address (principal principal) (response bool uint))
(add-resource ((string-utf8 50) (string-utf8 255) uint) (response uint uint))
(delete-resource (uint) (response bool uint))
(delete-resource-by-name ((string-utf8 50)) (response bool uint))
(pay-invoice (uint (optional (buff 34))) (response uint uint))
(pay-invoice-by-resource-name ((string-utf8 50) (optional (buff 34))) (response uint uint))
)
)
4 changes: 2 additions & 2 deletions src/stacks-m2m-v2.clar
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

;; title: stacks-m2m-v1
;; version: 0.0.1
;; title: stacks-m2m-v2
;; version: 0.0.2
;; summary: HTTP 402 payments powered by Stacks

;; traits
Expand Down

0 comments on commit 067a4ce

Please sign in to comment.