Take tx memo data and parameter value as hex.
This commit is contained in:
@@ -57,13 +57,13 @@ const Transaction: FC<TransactionProps> = ({ header, state: txState, ...props })
|
||||
SetHookData['HookParameters']
|
||||
>((acc, [_, { label, value }]) => {
|
||||
return acc.concat({
|
||||
HookParameter: { HookParameterName: toHex(label), HookParameterValue: toHex(value) }
|
||||
HookParameter: { HookParameterName: toHex(label), HookParameterValue: value }
|
||||
})
|
||||
}, [])
|
||||
const Memos = memos
|
||||
? Object.entries(memos).reduce<SetHookData['Memos']>((acc, [_, { format, data, type }]) => {
|
||||
return acc?.concat({
|
||||
Memo: { MemoData: toHex(data), MemoFormat: toHex(format), MemoType: toHex(type) }
|
||||
Memo: { MemoData: data, MemoFormat: toHex(format), MemoType: toHex(type) }
|
||||
})
|
||||
}, [])
|
||||
: undefined
|
||||
|
||||
@@ -406,7 +406,7 @@ export const TxUI: FC<UIProps> = ({
|
||||
/>
|
||||
<Input
|
||||
css={{ mx: '$2' }}
|
||||
placeholder="Value"
|
||||
placeholder="Value (hex-quoted)"
|
||||
value={value}
|
||||
onChange={e => {
|
||||
setState({
|
||||
@@ -469,7 +469,7 @@ export const TxUI: FC<UIProps> = ({
|
||||
}}
|
||||
/>
|
||||
<Input
|
||||
placeholder="Data"
|
||||
placeholder="Data (hex-quoted)"
|
||||
css={{ mx: '$2' }}
|
||||
value={memo.data}
|
||||
onChange={e => {
|
||||
|
||||
Reference in New Issue
Block a user