Make msg a string | null

This commit is contained in:
Simon Warta
2023-03-06 14:51:07 +01:00
parent ee5429d1f4
commit 652c74d159
2 changed files with 12 additions and 7 deletions
@@ -31,12 +31,11 @@ for (let checksum of checksums) {
for (let creator of [makeTestingAddress(20), makeTestingAddress(32)]) {
for (let salt of salts) {
for (let msg of msgs) {
const encodedMsg = typeof msg === "string" ? toUtf8(msg) : new Uint8Array();
const { key, addressData, address } = _instantiate2AddressIntermediate(
checksum,
creator,
salt,
encodedMsg,
msg,
"purple",
);
out.push({