@leofcoin/codec-format-interface 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -156,7 +156,7 @@ let Codec$1 = class Codec extends BasicInterface$1 {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
else if (typeof buffer === 'string') {
|
|
159
|
-
if (utils.getCodec
|
|
159
|
+
if (utils.getCodec(buffer))
|
|
160
160
|
this.fromName(buffer);
|
|
161
161
|
else if (this.isHex(buffer))
|
|
162
162
|
this.fromHex(buffer);
|