Hakuzaru is unnecessarily strict about ak_ vs ct_ prefixes #10

Open
opened 2025-11-18 11:09:19 +09:00 by spivee · 0 comments
Member

This is more of a note for myself, but if you try to pass in a ct_ to a function that expects an arbitrary address, (which can include contracts!) then it complains. Also, if a function returns an address that happens to be a contract, hakuzaru is blind to this, and wraps it up as ak_, even though technically the address binary has enough info to deduce whether it is a contract or an ECDSA account.

This is more of a note for myself, but if you try to pass in a ct_ to a function that expects an arbitrary address, (which can include contracts!) then it complains. Also, if a function returns an address that happens to be a contract, hakuzaru is blind to this, and wraps it up as ak_, even though technically the address binary has enough info to deduce whether it is a contract or an ECDSA account.
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/hakuzaru#10
No description provided.