Compare commits
1 Commits
fix/to-hex
...
fix/invoke
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cf18ef61c |
@@ -287,6 +287,10 @@
|
||||
},
|
||||
{
|
||||
"TransactionType": "Invoke",
|
||||
"Destination": {
|
||||
"$type": "account",
|
||||
"$value": ""
|
||||
},
|
||||
"Fee": "12"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -85,8 +85,7 @@ export const getInvokeOptions = (content?: string) => {
|
||||
export function toHex(str: string) {
|
||||
var result = ''
|
||||
for (var i = 0; i < str.length; i++) {
|
||||
const hex = str.charCodeAt(i).toString(16)
|
||||
result += hex.padStart(2, '0')
|
||||
result += str.charCodeAt(i).toString(16)
|
||||
}
|
||||
return result.toUpperCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user