From 303b4b2756b3838e33c770d0cab585a4411abfb7 Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 23 Mar 2020 12:43:40 +0100 Subject: [PATCH] zuse: better ethereum abi data type Considering some of the options here were atoms, not cells, $% wasn't appropriate, and led to *etyp:abi:ethereum resulting in ford %ride execution failure. Simply using $? instead would result in a fish-loop, so here we split the atom cases from the tagged union ones with a $@. --- pkg/arvo/sys/zuse.hoon | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/arvo/sys/zuse.hoon b/pkg/arvo/sys/zuse.hoon index 65c3b2a500..49c4ec14ed 100644 --- a/pkg/arvo/sys/zuse.hoon +++ b/pkg/arvo/sys/zuse.hoon @@ -8171,15 +8171,18 @@ => |% :: solidity types. integer bitsizes ignored ++ etyp + $@ $? :: static + %address %bool + %int %uint + %real %ureal + :: dynamic + %bytes %string + == $% :: static - %address %bool - %int %uint - %real %ureal [%bytes-n n=@ud] :: dynamic [%array-n t=etyp n=@ud] [%array t=etyp] - %bytes %string == :: :: solidity-style typed data. integer bitsizes ignored