You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
Note: The example uses serpent on the develop branch with revision c9563cff.
The following example tries to return a long text string. An examination of the LLL output makes it seem as if only 32 bytes are returned in the expression (return (ref '_temp_131) 32). Am I misreading this LLL expression?
Need "return(text("This is 53 characters, which is longer than 256
bits."):str)". Yeah, I've been trying to tiptoe the line between being
minimalistic and having a type system and it sometimes leads to weird
consequences like that.
Hi @nejucomo I haven't tried return 42 :str
Something would not work somewhere, and the error provided may not be clear at all, so at this stage developer does have to be more careful about the types. If you prefer better typing, try Solidity, but when you opened this issue I would not have been surprised if Solidity wasn't able to do better than Serpent in this regard (returning a string). Serpent has its quirks but you may find it can still do some things that Solidity does not yet support.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Note: The example uses
serpent
on thedevelop
branch with revisionc9563cff
.The following example tries to return a long
text
string. An examination of theLLL
output makes it seem as if only 32 bytes are returned in the expression(return (ref '_temp_131) 32)
. Am I misreading thisLLL
expression?The text was updated successfully, but these errors were encountered: