1import * as encoding from '@walletconnect/encoding';
3export const mayCreateHexString = (data?: number | string) => {
4 if (!data || encoding.isHexString(data)) return data;
6 if (typeof data === 'number')
7 return encoding.sanitizeHex(encoding.numberToHex(data));
9 if (typeof data === 'string')
10 return encoding.sanitizeHex(encoding.utf8ToHex(data));
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list