refactor: deploy from run and deploy tab error

pull/1342/head
davidzagi93@gmail.com 3 years ago
parent 254942fff9
commit a80227d5f6
  1. 2
      libs/remix-ui/terminal/src/lib/reducers/terminalReducer.ts
  2. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -177,7 +177,7 @@ export const registerScriptRunnerReducer = (state, action) => {
case 'unknownTransaction':
return {
...state,
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: '', name: 'knownTransaction' })
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: '', name: 'unknownTransaction' })
}
case 'emptyBlock':
console.log({ action: action.payload.message }, ' emptyBLock reducer')

@ -849,9 +849,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
)
} else if (x.name === 'unknownTransaction' || x.name === 'knownTransaction') {
return x.message.filter(x => x.tx.hash.includes(searchInput) || x.tx.from.includes(searchInput) || (x.tx.to.includes(searchInput))).map((trans) => {
console.log({ trans }, 'first output from deploy')
return (<div className='px-4 block' data-id={`block_tx${trans.tx.hash}`}> {renderKnownTransactions(trans.tx, trans.receipt, index)} </div>)
})
} else {
console.log({ x }, 'second output from deploy')
return (
<div className="px-4 block" data-id="block_null" key={index}>
<span className={x.style}>{x.message}</span>

Loading…
Cancel
Save