Skip to content

Commit 2418b51

Browse files
committed
fix: fixed non used hex functions
1 parent ab2c509 commit 2418b51

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/views/PermissionSign.vue

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,6 @@ const signTypedDataMethodToVersion = {
118118
eth_signTypedData_v4: 'V4'
119119
}
120120
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-
137121
export default {
138122
components: {
139123
SpinnerIcon,

0 commit comments

Comments
 (0)