Added Output on terminal for undecoded Output

pull/5074/head
shubhiscoding 3 months ago committed by Aniket
parent 25261e6351
commit d9ba3e72f7
  1. 1
      apps/remix-ide/src/app/tabs/locales/en/terminal.json
  2. 1
      apps/remix-ide/src/app/tabs/locales/es/terminal.json
  3. 1
      apps/remix-ide/src/app/tabs/locales/fr/terminal.json
  4. 1
      apps/remix-ide/src/app/tabs/locales/ko/terminal.json
  5. 1
      apps/remix-ide/src/app/tabs/locales/ru/terminal.json
  6. 1
      apps/remix-ide/src/app/tabs/locales/zh/terminal.json
  7. 1
      libs/remix-ui/terminal/src/lib/components/RenderCall.tsx
  8. 1
      libs/remix-ui/terminal/src/lib/components/RenderKnownTransactions.tsx
  9. 1
      libs/remix-ui/terminal/src/lib/components/RenderUnknownTransactions.tsx
  10. 11
      libs/remix-ui/terminal/src/lib/components/Table.tsx

@ -39,6 +39,7 @@
"terminal.executionCost": "execution cost",
"terminal.input": "input",
"terminal.decodedInput": "decoded input",
"terminal.output": "output",
"terminal.decodedOutput": "decoded output",
"terminal.rawlogs": "raw logs",
"terminal.logs": "logs"

@ -38,6 +38,7 @@
"terminal.executionCost": "costo de ejecución",
"terminal.input": "entrada",
"terminal.decodedInput": "entrada descodificada",
"terminal.output": "salida",
"terminal.decodedOutput": "salida descodificada",
"terminal.rawlogs": "registros sin procesar",
"terminal.logs": "registros"

@ -38,6 +38,7 @@
"terminal.executionCost": "coût d'exécution",
"terminal.input": "entrée",
"terminal.decodedInput": "entrée décodée",
"terminal.output": "sortie",
"terminal.decodedOutput": "sortie décodée",
"terminal.rawlogs": "logs bruts",
"terminal.logs": "Log"

@ -38,6 +38,7 @@
"terminal.executionCost": "실행 비용",
"terminal.input": "입력",
"terminal.decodedInput": "디코드된 입력",
"terminal.output": "출력",
"terminal.decodedOutput": "디코드된 출력",
"terminal.rawlogs": "원시 로그",
"terminal.logs": "로그"

@ -38,6 +38,7 @@
"terminal.executionCost": "стоимость исполнения",
"terminal.input": "ввод",
"terminal.decodedInput": "декодированный ввод",
"terminal.output": "вывод",
"terminal.decodedOutput": "декодированный вывод",
"terminal.rawlogs": "необработанные журналы",
"terminal.logs": "журналы"

@ -38,6 +38,7 @@
"terminal.executionCost": "执行成本",
"terminal.input": "输入",
"terminal.decodedInput": "解码输入",
"terminal.output": "输出",
"terminal.decodedOutput": "解码输出",
"terminal.rawlogs": "原始日志",
"terminal.logs": "日志"

@ -66,6 +66,7 @@ const RenderCall = ({ tx, resolvedData, logs, index, plugin, showTableHash, txDe
'gas': tx.gas,
'input': tx.input,
'decoded input': resolvedData && resolvedData.params ? JSON.stringify(typeConversion.stringify(resolvedData.params), null, '\t') : ' - ',
'output': tx.returnValue,
'decoded output': resolvedData && resolvedData.decodedReturnValue ? JSON.stringify(typeConversion.stringify(resolvedData.decodedReturnValue), null, '\t') : ' - ',
'val': tx.value,
'logs': logs,

@ -61,6 +61,7 @@ const RenderKnownTransactions = ({ tx, receipt, resolvedData, logs, index, plugi
'gas': tx.gas,
'input': tx.input,
'decoded input': resolvedData && resolvedData.params ? JSON.stringify(typeConversion.stringify(resolvedData.params), null, '\t') : ' - ',
'output': tx.returnValue,
'decoded output': resolvedData && resolvedData.decodedReturnValue ? JSON.stringify(typeConversion.stringify(resolvedData.decodedReturnValue), null, '\t') : ' - ',
'logs': logs,
'val': tx.value,

@ -56,6 +56,7 @@ const RenderUnKnownTransactions = ({ tx, receipt, index, plugin, showTableHash,
to,
'gas': tx.gas,
'input': tx.input,
'output': tx.returnValue,
'decoded output': ' - ',
'val': tx.value,
'transactionCost': tx.transactionCost,

@ -158,6 +158,17 @@ const showTable = (opts, showTableHash) => {
</td>
</tr>
) : null}
{opts.output ? (
<tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>
<FormattedMessage id="terminal.output" />
</td>
<td className="remix_ui_terminal_td" data-id={`txLoggerTableHash${opts.hash}`} data-shared={`pair_${opts.hash}`}>
{opts.output}
<CopyToClipboard content={opts.output} />
</td>
</tr>
) : null}
{opts['decoded input'] ? (
<tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>

Loading…
Cancel
Save