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': case 'unknownTransaction':
return { return {
...state, ...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': case 'emptyBlock':
console.log({ action: action.payload.message }, ' emptyBLock reducer') 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') { } 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) => { 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>) return (<div className='px-4 block' data-id={`block_tx${trans.tx.hash}`}> {renderKnownTransactions(trans.tx, trans.receipt, index)} </div>)
}) })
} else { } else {
console.log({ x }, 'second output from deploy')
return ( return (
<div className="px-4 block" data-id="block_null" key={index}> <div className="px-4 block" data-id="block_null" key={index}>
<span className={x.style}>{x.message}</span> <span className={x.style}>{x.message}</span>

Loading…
Cancel
Save