We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I couldn't exactly identify what is the issue, as the following test (with the commented edits) show different failures:
compiled: Ok(Some(Tuple(TupleData { type_signature: TupleTypeSignature { "fn": (response UnknownType (list 1 (string-utf8 0))), "mymap": (optional UnknownType),}, data_map: {ClarityName("fn"): Response(ResponseData { committed: false, data: Sequence(List(ListData { data: [Sequence(String(u""))], type_signature: ListTypeData { max_len: 1, entry_type: SequenceType(StringType(UTF8(StringUTF8Length(0)))) } })) }), ClarityName("mymap"): Optional(OptionalData { data: None })} }))) interpreted: Ok(Some(Tuple(TupleData { type_signature: TupleTypeSignature { "fn": (response UnknownType (list 1 (string-utf8 3))), "mymap": (optional UnknownType),}, data_map: {ClarityName("fn"): Response(ResponseData { committed: false, data: Sequence(List(ListData { data: [Sequence(String(u"foo"))], type_signature: ListTypeData { max_len: 1, entry_type: SequenceType(StringType(UTF8(StringUTF8Length(3)))) } })) }), ClarityName("mymap"): Optional(OptionalData { data: None })} })))
map-set
compiled: Err(Unchecked(InvalidCharactersDetected))
1
(map-get? mymap 1)
#[test] fn something_funny() { crosscheck_compare_only( r#" (define-map mymap int int) (define-private (somefn) (begin ;; (map-set mymap 0 99) (err (list u"foo")) ) ) { fn: (somefn), mymap: (map-get? mymap 0) } "# ); }
The text was updated successfully, but these errors were encountered:
Acaccia
No branches or pull requests
I couldn't exactly identify what is the issue, as the following test (with the commented edits) show different failures:
map-set
line:compiled: Err(Unchecked(InvalidCharactersDetected))
(interpreted one stays correct)map-set
line + changing map-get to fetch key1
((map-get? mymap 1)
): test passesThe text was updated successfully, but these errors were encountered: