We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03744a4 commit 49ed9f9Copy full SHA for 49ed9f9
BaseLayer/ResourceMachine.juvix
@@ -2,7 +2,7 @@ module BaseLayer.ResourceMachine;
2
3
import BaseLayer.AnomaAtom open public;
4
import Anoma.Encode open;
5
-import Stdlib.Debug.Fail open;
+import Stdlib.Debug open;
6
import Anoma.Builtin.System open;
7
import Anoma.Builtin.ByteArray open;
8
import Stdlib.Prelude open;
@@ -212,7 +212,10 @@ with
212
fromByteArray (b : ByteArray) : Nonce :=
213
if
214
| ByteArray.size b == size := privateMk b
215
- | else := failwith "Nonce.fromByteArray incorrect size";
+ | else :=
216
+ trace "bytearraysize: "
217
+ >-> trace (ByteArray.size b)
218
+ >-> failwith "Nonce.fromByteArray incorrect size";
219
220
from32SizedByteArray : ByteArray -> Nonce := fromByteArray;
221
0 commit comments