We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca207d commit b3678b7Copy full SHA for b3678b7
.gitignore
@@ -76,4 +76,5 @@ node_modules/
76
!.yarn/sdks
77
!.yarn/versions
78
79
+# ignore intellij local files
80
.idea/
src/utils/ERC1024.ts
@@ -47,7 +47,7 @@ const encrypt = (
47
} as Eip1024EncryptedData;
48
}
49
default:
50
- throw new Error('Encryption type/version not supported');
+ throw new Error(`Encryption type/version not supported ${version}`);
51
52
};
53
@@ -88,7 +88,9 @@ const decrypt = (
88
return bytesToUtf8(decryptedMessage);
89
90
91
- throw new Error('Encryption type/version not supported.');
+ throw new Error(
92
+ `Encryption type/version not supported (${encryptedData.version}).`,
93
+ );
94
95
96
0 commit comments