Skip to content

Commit

Permalink
refactors create-lock to use same include file
Browse files Browse the repository at this point in the history
  • Loading branch information
wbendick authored and hoffmang9 committed Feb 4, 2021
1 parent 659b750 commit 494cca9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/wallet/puzzles/rl.clvm
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@
(unquote (c or (r args)))))
0))

(include create-lock-puzzlehash.clvm)

(defun create-lock (consolidating_primary_input consolidating_coin_puzzle_hash outgoing_amount)
(list CREATE_COIN
(sha256tree (list r
(list c
(list q
(sha256 consolidating_primary_input
consolidating_coin_puzzle_hash
outgoing_amount))
(q (q ())))))
(create-lock-puzzlehash (sha256 consolidating_primary_input
consolidating_coin_puzzle_hash
outgoing_amount))
0))

(defun aggregation (origin_id
Expand Down

0 comments on commit 494cca9

Please sign in to comment.