convex
convex copied to clipboard
Unexpected Error: `blob` with odd-length hexstring
Calling blob with a hexstring of odd length results in a fatal error and breaks the executing account.

Believe this is now fixed in latest master with commit 78270113d4db92c65aebfc9d2d613bd600135679
Looks fixed in the sense that it outputs a CAST error but then it looks like all strings cannot be cast to Blob (whereas it is just about odd-length ones).
Hmmm tricky one. I think a :CAST error is appropriate if any explicit casting operation fails, but I see the case for :ARGUMENT. Will leave open for now.
I believe this has been resolved in recent releases. We are sticking with :CAST for now because it is a failed cast, and this is probably the most useful error.