We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab2c509 commit 2418b51Copy full SHA for 2418b51
src/views/PermissionSign.vue
@@ -118,22 +118,6 @@ const signTypedDataMethodToVersion = {
118
eth_signTypedData_v4: 'V4'
119
}
120
121
-function isHex(str) {
122
- return Boolean(str.match(/^[0-9a-f]+$/i))
123
-}
124
-
125
-function hexToAscii(hex) {
126
- hex = hex.replace('0x', '')
127
- if (!isHex(hex)) return hex
128
129
- let str = ''
130
- for (let i = 0; i < hex.length; i += 2) {
131
- var code = parseInt(hex.substr(i, 2), 16)
132
- str += String.fromCharCode(code)
133
- }
134
- return str
135
136
137
export default {
138
components: {
139
SpinnerIcon,
0 commit comments