Skip to content

Commit 49ed9f9

Browse files
committed
print bytearray size
1 parent 03744a4 commit 49ed9f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

BaseLayer/ResourceMachine.juvix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module BaseLayer.ResourceMachine;
22

33
import BaseLayer.AnomaAtom open public;
44
import Anoma.Encode open;
5-
import Stdlib.Debug.Fail open;
5+
import Stdlib.Debug open;
66
import Anoma.Builtin.System open;
77
import Anoma.Builtin.ByteArray open;
88
import Stdlib.Prelude open;
@@ -212,7 +212,10 @@ with
212212
fromByteArray (b : ByteArray) : Nonce :=
213213
if
214214
| ByteArray.size b == size := privateMk b
215-
| else := failwith "Nonce.fromByteArray incorrect size";
215+
| else :=
216+
trace "bytearraysize: "
217+
>-> trace (ByteArray.size b)
218+
>-> failwith "Nonce.fromByteArray incorrect size";
216219

217220
from32SizedByteArray : ByteArray -> Nonce := fromByteArray;
218221

0 commit comments

Comments
 (0)