Compare commits

..

1 Commits

Author SHA1 Message Date
muzam1l
2cf18ef61c Add Destination field to Invoke transaction. 2023-03-27 15:32:25 +05:30
2 changed files with 5 additions and 2 deletions

View File

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

View File

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