Closed hstove closed 2 years ago
Thanks for reporting, @hstove! This means that the new parser that we use in the REPL (mostly for better error messages) didn't match what the "canonical" parser produced. This case is actually very weird, and a good discovery of a bug in the canonical parser. I simplified your example further to:
(define-public (execute)
(begin
;; {who: 'ST2CY5V39NHDPWSXMW9QDT3HC3GD6Q6XX4CFRK9AG, allowance: u100}
(ok true)
)
)
Strangely, the commented tuple shows up in the AST from the v1 parser. It does not show up in the v2 parser's AST, so that is what triggered this error.
I'm going to close this issue, since the bug is in the blockchain, not in clarinet or the REPL, but I have opened stacks-network/stacks-blockchain#3124 to discuss it.
No idea what this means, but the warning asks me to open an issue.
Warning text: "conflict between parser versions, reverting to parser v1"
Clarinet v0.28.1
Repro this by taking https://github.com/MarvinJanssen/executor-dao/blob/main/contracts/proposals/edp001-dev-fund.clar and commenting a few lines: