From 29e01b6f39b31c099658d8b2e8895c9a7bf51630 Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Wed, 18 Aug 2021 08:17:52 +0100 Subject: [PATCH] fix: now passing resolveData and logs from knownTransaction in Deploy tab --- libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx index 3acfee6ca9..e797b1ce5a 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -1281,9 +1281,9 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { } } - const renderKnownTransactions = (tx, receipt, index) => { + const renderUnKnownTransactions = (tx, receipt, resolvedData, logs, index) => { const from = tx.from - const to = tx.to + const to = tx.to ? tx.to : resolvedData.contractName + '.' + resolvedData.fn const obj = { from, to } const showDetails = showTableDetails === tx.from const txType = 'unknown' + (tx.isCall ? 'Call' : 'Tx') @@ -1308,9 +1308,9 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { to, gas: tx.gas, input: tx.input, - 'decoded input': tx.resolvedData && tx.resolvedData.params ? JSON.stringify(typeConversion.stringify(tx.resoparams), null, '\t') : ' - ', - 'decoded output': tx.resolvedData && tx.resolvedData.decodedReturnValue ? JSON.stringify(typeConversion.stringify(tx.resolvedData.decodedReturnValue), null, '\t') : ' - ', - logs: tx.logs, + 'decoded input': resolvedData && resolvedData.params ? JSON.stringify(typeConversion.stringify(resolvedData.params), null, '\t') : ' - ', + 'decoded output': resolvedData && resolvedData.decodedReturnValue ? JSON.stringify(typeConversion.stringify(resolvedData.decodedReturnValue), null, '\t') : ' - ', + logs: logs, val: tx.value, transactionCost: tx.transactionCost, executionCost: tx.executionCost