Can't decode calldata/result with complex builtin types (AENS.name etc.) #344

Closed
opened 2021-09-24 21:26:59 +09:00 by zxq9 · 0 comments
zxq9 commented 2021-09-24 21:26:59 +09:00 (Migrated from gitlab.com)

Created by: hanssv

You'll get errors of the form:

Cannot translate FATE value {variant,[3],0,{{address,<<213,207,8,64,14,152,130,34,242,110,180,176,44,143,137,7,116,87,70,114,17,166,230,217,85,237,183,7,73,198,163,59>>}, {variant,[1,1],1,{200345}}, #{}}}        
    of Sophia type AENS.name

The problem is that builtin types aren't explicitly represented in the type - they need to be added in the decoder.

*Created by: hanssv* You'll get errors of the form: ``` Cannot translate FATE value {variant,[3],0,{{address,<<213,207,8,64,14,152,130,34,242,110,180,176,44,143,137,7,116,87,70,114,17,166,230,217,85,237,183,7,73,198,163,59>>}, {variant,[1,1],1,{200345}}, #{}}} of Sophia type AENS.name ``` The problem is that builtin types aren't explicitly represented in the type - they need to be added in the decoder.
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/sophia#344
No description provided.