Skip to content

Commit

Permalink
fix: fixed non used hex functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleySuira committed May 15, 2023
1 parent ab2c509 commit 2418b51
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/views/PermissionSign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,22 +118,6 @@ const signTypedDataMethodToVersion = {
eth_signTypedData_v4: 'V4'
}
function isHex(str) {
return Boolean(str.match(/^[0-9a-f]+$/i))
}
function hexToAscii(hex) {
hex = hex.replace('0x', '')
if (!isHex(hex)) return hex
let str = ''
for (let i = 0; i < hex.length; i += 2) {
var code = parseInt(hex.substr(i, 2), 16)
str += String.fromCharCode(code)
}
return str
}
export default {
components: {
SpinnerIcon,
Expand Down

0 comments on commit 2418b51

Please sign in to comment.