Skip to content

Commit

Permalink
fixed delegate-stack-extend signature
Browse files Browse the repository at this point in the history
  • Loading branch information
setzeus committed Jan 23, 2024
1 parent f0c9ce0 commit 14950a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stackslib/src/chainstate/stacks/boot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,8 +1864,8 @@ pub mod test {
vec![
Value::Principal(stacker.clone()),
Value::Tuple(pox_addr.as_clarity_tuple().unwrap()),
Value::buff_from(signer_key.to_bytes_compressed()).unwrap(),
Value::UInt(extend_count),
Value::buff_from(signer_key.to_bytes_compressed()).unwrap(),
],
)
.unwrap();
Expand Down
4 changes: 2 additions & 2 deletions stackslib/src/chainstate/stacks/boot/pox-4.clar
Original file line number Diff line number Diff line change
Expand Up @@ -1158,8 +1158,8 @@
(define-public (delegate-stack-extend
(stacker principal)
(pox-addr { version: (buff 1), hashbytes: (buff 32) })
(signer-key (buff 33))
(extend-count uint))
(extend-count uint)
(signer-key (buff 33)))
(let ((stacker-info (stx-account stacker))
;; to extend, there must already be an entry in the stacking-state
(stacker-state (unwrap! (get-stacker-info stacker) (err ERR_STACK_EXTEND_NOT_LOCKED)))
Expand Down

0 comments on commit 14950a2

Please sign in to comment.