Additional __PURE__ annotations (#1787)

* Additional __PURE__ annotations

* Revert as const (This _could_ yield breaking external changes)
This commit is contained in:
Jaco
2023-03-31 08:08:01 +03:00
committed by GitHub
parent 777b823317
commit 45b040fbf8
11 changed files with 25 additions and 13 deletions
+3 -3
View File
@@ -10,13 +10,13 @@ import { u8aEq } from './eq.js';
import { u8aToU8a } from './toU8a.js';
/** @internal */
export const U8A_WRAP_ETHEREUM = u8aToU8a('\x19Ethereum Signed Message:\n');
export const U8A_WRAP_ETHEREUM = /*#__PURE__*/ u8aToU8a('\x19Ethereum Signed Message:\n');
/** @internal */
export const U8A_WRAP_PREFIX = u8aToU8a('<Bytes>');
export const U8A_WRAP_PREFIX = /*#__PURE__*/ u8aToU8a('<Bytes>');
/** @internal */
export const U8A_WRAP_POSTFIX = u8aToU8a('</Bytes>');
export const U8A_WRAP_POSTFIX = /*#__PURE__*/ u8aToU8a('</Bytes>');
const WRAP_LEN = U8A_WRAP_PREFIX.length + U8A_WRAP_POSTFIX.length;