Compare commits

...

2 Commits

Author SHA1 Message Date
muzam1l
801d9778cb Fix hex logic. 2023-03-27 19:21:14 +05:30
muzamil
4d2dc16ce5 Merge pull request #296 from XRPLF/feat/account-ui
Extend transactions Account UI.
2023-03-23 20:45:27 +05:30

View File

@@ -85,7 +85,8 @@ export const getInvokeOptions = (content?: string) => {
export function toHex(str: string) {
var result = ''
for (var i = 0; i < str.length; i++) {
result += str.charCodeAt(i).toString(16)
const hex = str.charCodeAt(i).toString(16)
result += hex.padStart(2, '0')
}
return result.toUpperCase()
}