Compare commits

..

1 Commits

Author SHA1 Message Date
muzam1l
801d9778cb Fix hex logic. 2023-03-27 19:21:14 +05:30
2 changed files with 2 additions and 5 deletions

View File

@@ -287,10 +287,6 @@
},
{
"TransactionType": "Invoke",
"Destination": {
"$type": "account",
"$value": ""
},
"Fee": "12"
},
{

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()
}