We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6234de + 0e6f288 commit 566935eCopy full SHA for 566935e
motoko/ledger-transfer/src/ledger_transfer/Account.mo
@@ -29,6 +29,7 @@ module {
29
hash.write([0x0A]);
30
hash.write(Blob.toArray(Text.encodeUtf8("account-id")));
31
hash.write(Blob.toArray(Principal.toBlob(principal)));
32
+ assert subaccount.size() == 32;
33
hash.write(Blob.toArray(subaccount));
34
let hashSum = hash.sum();
35
let crc32Bytes = beBytes(CRC32.ofArray(hashSum));
0 commit comments