Skip to content

Commit

Permalink
workaround of
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoPascal31 committed Nov 4, 2023
1 parent 4ecf4f8 commit 14bf485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pact/contracts/util-strings.pact
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.8")
(defconst VERSION:string "0.8.1")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down Expand Up @@ -143,7 +143,9 @@
(defun join:string (separator:string in:[string])
"Join a list of string with a separator"
(if (is-empty in) ""
(+ (first in) (concat (map (+ separator) (remove-first in)))))
(if (is-singleton in) ; Needed as a workaround
(first in) ; of https://github.com/kadena-io/pact/issues/1316
(+ (first in) (concat (map (+ separator) (remove-first in))))))
)

(defun split:[string] (separator:string in:string)
Expand Down

0 comments on commit 14bf485

Please sign in to comment.