Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f068ea7f
Commit
f068ea7f
authored
Aug 24, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix files with linting issues
parent
f56d21d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
31 deletions
+13
-31
remix-ui-terminal.tsx
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+13
-31
No files found.
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
View file @
f068ea7f
...
@@ -56,8 +56,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -56,8 +56,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
[
toggleDownUp
,
setToggleDownUp
]
=
useState
(
'fa-angle-double-down'
)
const
[
toggleDownUp
,
setToggleDownUp
]
=
useState
(
'fa-angle-double-down'
)
const
[
_cmdIndex
,
setCmdIndex
]
=
useState
(
-
1
)
const
[
_cmdIndex
,
setCmdIndex
]
=
useState
(
-
1
)
const
[
_cmdTemp
,
setCmdTemp
]
=
useState
(
''
)
const
[
_cmdTemp
,
setCmdTemp
]
=
useState
(
''
)
const
[
_cmdHistory
,
setCmdHistory
]
=
useState
([])
//
const [_cmdHistory, setCmdHistory] = useState([])
const
[
windowHeight
,
setWindowHeight
]
=
useState
(
window
.
innerHeight
)
const
[,
setWindowHeight
]
=
useState
(
window
.
innerHeight
)
// dragable state
// dragable state
const
[
leftHeight
,
setLeftHeight
]
=
useState
<
undefined
|
number
>
(
undefined
)
const
[
leftHeight
,
setLeftHeight
]
=
useState
<
undefined
|
number
>
(
undefined
)
const
[
separatorYPosition
,
setSeparatorYPosition
]
=
useState
<
undefined
|
number
>
(
undefined
)
const
[
separatorYPosition
,
setSeparatorYPosition
]
=
useState
<
undefined
|
number
>
(
undefined
)
...
@@ -65,8 +65,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -65,8 +65,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
[
newstate
,
dispatch
]
=
useReducer
(
registerCommandReducer
,
initialState
)
const
[
newstate
,
dispatch
]
=
useReducer
(
registerCommandReducer
,
initialState
)
const
[
cmdHistory
,
cmdHistoryDispatch
]
=
useReducer
(
addCommandHistoryReducer
,
initialState
)
const
[
cmdHistory
,
cmdHistoryDispatch
]
=
useReducer
(
addCommandHistoryReducer
,
initialState
)
const
[
scriptRunnserState
,
scriptRunnerDispatch
]
=
useReducer
(
registerScriptRunnerReducer
,
initialState
)
const
[,
scriptRunnerDispatch
]
=
useReducer
(
registerScriptRunnerReducer
,
initialState
)
const
[
isListeningOnNetwork
,
setIsListeningOnNetwork
]
=
useState
(
false
)
const
[,
setIsListeningOnNetwork
]
=
useState
(
false
)
const
[
clearConsole
,
setClearConsole
]
=
useState
(
false
)
const
[
clearConsole
,
setClearConsole
]
=
useState
(
false
)
const
[
paste
,
setPaste
]
=
useState
(
false
)
const
[
paste
,
setPaste
]
=
useState
(
false
)
const
[
autoCompletState
,
setAutoCompleteState
]
=
useState
({
const
[
autoCompletState
,
setAutoCompleteState
]
=
useState
({
...
@@ -121,7 +121,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -121,7 +121,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
registerCommandAction
(
'warn'
,
_blocksRenderer
(
'warn'
),
{
activate
:
true
},
dispatch
)
registerCommandAction
(
'warn'
,
_blocksRenderer
(
'warn'
),
{
activate
:
true
},
dispatch
)
registerCommandAction
(
'error'
,
_blocksRenderer
(
'error'
),
{
activate
:
true
},
dispatch
)
registerCommandAction
(
'error'
,
_blocksRenderer
(
'error'
),
{
activate
:
true
},
dispatch
)
registerCommandAction
(
'script'
,
function
execute
(
args
,
scopedCommands
,
append
)
{
registerCommandAction
(
'script'
,
function
execute
(
args
,
scopedCommands
)
{
var
script
=
String
(
args
[
0
])
var
script
=
String
(
args
[
0
])
console
.
log
({
script
},
'script'
)
console
.
log
({
script
},
'script'
)
_shell
(
script
,
scopedCommands
,
function
(
error
,
output
)
{
_shell
(
script
,
scopedCommands
,
function
(
error
,
output
)
{
...
@@ -296,12 +296,13 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -296,12 +296,13 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
setAutoCompleteState
(
prevState
=>
({
...
prevState
,
activeSuggestion
:
suggestionCount
-
1
,
userInput
:
Object
.
keys
(
autoCompletState
.
data
.
_options
[
autoCompletState
.
activeSuggestion
]).
toString
()
}))
setAutoCompleteState
(
prevState
=>
({
...
prevState
,
activeSuggestion
:
suggestionCount
-
1
,
userInput
:
Object
.
keys
(
autoCompletState
.
data
.
_options
[
autoCompletState
.
activeSuggestion
]).
toString
()
}))
console
.
log
({
autoCompletState
},
'disable up an down key in input box'
)
console
.
log
({
autoCompletState
},
'disable up an down key in input box'
)
}
else
if
(
event
.
which
===
38
&&
!
autoCompletState
.
showSuggestions
)
{
// <arrowUp>
}
else
if
(
event
.
which
===
38
&&
!
autoCompletState
.
showSuggestions
)
{
// <arrowUp>
const
len
=
_cmdHistory
.
length
//
const len = _cmdHistory.length
if
(
len
===
0
)
event
.
preventDefault
()
//
if (len === 0) event.preventDefault()
if
(
_
cmdHistory
.
length
-
1
>
_cmdIndex
)
{
if
(
cmdHistory
.
length
-
1
>
_cmdIndex
)
{
setCmdIndex
(
prevState
=>
prevState
++
)
setCmdIndex
(
prevState
=>
prevState
++
)
}
}
inputEl
.
current
.
innerText
=
_cmdHistory
[
_cmdIndex
]
// console.log({ _cmdIndex }, 'history')
inputEl
.
current
.
innerText
=
cmdHistory
[
_cmdIndex
]
inputEl
.
current
.
focus
()
inputEl
.
current
.
focus
()
}
else
if
(
event
.
which
===
40
&&
autoCompletState
.
showSuggestions
)
{
}
else
if
(
event
.
which
===
40
&&
autoCompletState
.
showSuggestions
)
{
event
.
preventDefault
()
event
.
preventDefault
()
...
@@ -309,12 +310,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -309,12 +310,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
return
return
}
}
setAutoCompleteState
(
prevState
=>
({
...
prevState
,
activeSuggestion
:
suggestionCount
+
1
,
userInput
:
Object
.
keys
(
autoCompletState
.
data
.
_options
[
autoCompletState
.
activeSuggestion
+
1
]).
toString
()
}))
setAutoCompleteState
(
prevState
=>
({
...
prevState
,
activeSuggestion
:
suggestionCount
+
1
,
userInput
:
Object
.
keys
(
autoCompletState
.
data
.
_options
[
autoCompletState
.
activeSuggestion
+
1
]).
toString
()
}))
console
.
log
(
'disable up an down key in input box'
)
}
else
if
(
event
.
which
===
40
&&
!
autoCompletState
.
showSuggestions
)
{
}
else
if
(
event
.
which
===
40
&&
!
autoCompletState
.
showSuggestions
)
{
if
(
_cmdIndex
>
-
1
)
{
if
(
_cmdIndex
>
-
1
)
{
setCmdIndex
(
prevState
=>
prevState
--
)
setCmdIndex
(
prevState
=>
prevState
--
)
}
}
inputEl
.
current
.
innerText
=
_cmdIndex
>=
0
?
_
cmdHistory
[
_cmdIndex
]
:
_cmdTemp
inputEl
.
current
.
innerText
=
_cmdIndex
>=
0
?
cmdHistory
[
_cmdIndex
]
:
_cmdTemp
inputEl
.
current
.
focus
()
inputEl
.
current
.
focus
()
}
else
{
}
else
{
setCmdTemp
(
inputEl
.
current
.
innerText
)
setCmdTemp
(
inputEl
.
current
.
innerText
)
...
@@ -336,7 +336,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -336,7 +336,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
setSeparatorYPosition
(
e
.
clientY
)
setSeparatorYPosition
(
e
.
clientY
)
setLeftHeight
(
newLeftHeight
)
setLeftHeight
(
newLeftHeight
)
props
.
event
.
trigger
(
'resize'
,
[
newLeftHeight
+
32
])
props
.
event
.
trigger
(
'resize'
,
[
newLeftHeight
+
32
])
console
.
log
({
newLeftHeight
})
}
}
}
}
...
@@ -373,7 +372,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -373,7 +372,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
_blocksRenderer
=
(
mode
)
=>
{
const
_blocksRenderer
=
(
mode
)
=>
{
if
(
mode
===
'html'
)
{
if
(
mode
===
'html'
)
{
return
function
logger
(
args
)
{
return
function
logger
(
args
)
{
console
.
log
({
args
})
if
(
args
.
length
)
{
if
(
args
.
length
)
{
return
args
[
0
]
return
args
[
0
]
}
}
...
@@ -400,7 +398,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -400,7 +398,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
return
val
return
val
})
})
if
(
values
.
length
)
{
if
(
values
.
length
)
{
console
.
log
({
values
})
return
`<span class="
${
mode
}
" >
${
values
}
</span>`
return
`<span class="
${
mode
}
" >
${
values
}
</span>`
}
}
}
}
...
@@ -428,7 +425,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -428,7 +425,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
event
.
preventDefault
()
event
.
preventDefault
()
const
inputString
=
event
.
target
.
value
const
inputString
=
event
.
target
.
value
if
(
matched
(
allPrograms
,
inputString
)
||
inputString
.
includes
(
'.'
))
{
if
(
matched
(
allPrograms
,
inputString
)
||
inputString
.
includes
(
'.'
))
{
console
.
log
(
paste
,
'onchange'
)
if
(
paste
)
{
if
(
paste
)
{
setPaste
(
false
)
setPaste
(
false
)
setAutoCompleteState
(
prevState
=>
({
...
prevState
,
showSuggestions
:
false
,
userInput
:
inputString
}))
setAutoCompleteState
(
prevState
=>
({
...
prevState
,
showSuggestions
:
false
,
userInput
:
inputString
}))
...
@@ -467,7 +463,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -467,7 +463,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
}
const
checkTxStatus
=
(
tx
,
type
)
=>
{
const
checkTxStatus
=
(
tx
,
type
)
=>
{
console
.
log
(
'inside checkTxStatus'
)
if
(
tx
.
status
===
'0x1'
||
tx
.
status
===
true
)
{
if
(
tx
.
status
===
'0x1'
||
tx
.
status
===
true
)
{
return
(<
i
className=
'txStatus succeeded fas fa-check-circle'
></
i
>)
return
(<
i
className=
'txStatus succeeded fas fa-check-circle'
></
i
>)
}
}
...
@@ -492,11 +487,9 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -492,11 +487,9 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
block
=
data
.
receipt
?
data
.
receipt
.
blockNumber
:
data
.
blockNumber
||
''
const
block
=
data
.
receipt
?
data
.
receipt
.
blockNumber
:
data
.
blockNumber
||
''
const
i
=
data
.
receipt
?
data
.
transactionIndex
:
data
.
transactionIndex
const
i
=
data
.
receipt
?
data
.
transactionIndex
:
data
.
transactionIndex
const
value
=
val
?
typeConversion
.
toInt
(
val
)
:
0
const
value
=
val
?
typeConversion
.
toInt
(
val
)
:
0
console
.
log
(
'inside context method'
)
if
(
blockchain
.
getProvider
()
===
'vm'
)
{
if
(
blockchain
.
getProvider
()
===
'vm'
)
{
return
(
return
(
<
div
>
<
div
>
{
console
.
log
(
'inside context method return'
)
}
<
span
className=
'txLog_7Xiho'
>
<
span
className=
'txLog_7Xiho'
>
<
span
className=
'tx'
>
[vm]
</
span
>
<
span
className=
'tx'
>
[vm]
</
span
>
<
div
className=
'txItem'
><
span
className=
'txItemTitle'
>
from:
</
span
>
{
from
}
</
div
>
<
div
className=
'txItem'
><
span
className=
'txItemTitle'
>
from:
</
span
>
{
from
}
</
div
>
...
@@ -538,7 +531,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -538,7 +531,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
txDetails
=
(
event
,
tx
)
=>
{
const
txDetails
=
(
event
,
tx
)
=>
{
if
(
showTableHash
.
includes
(
tx
.
hash
))
{
if
(
showTableHash
.
includes
(
tx
.
hash
))
{
const
index
=
showTableHash
.
indexOf
(
tx
.
hash
)
const
index
=
showTableHash
.
indexOf
(
tx
.
hash
)
console
.
log
({
index
})
if
(
index
>
-
1
)
{
if
(
index
>
-
1
)
{
setShowTableHash
((
prevState
)
=>
prevState
.
filter
((
x
)
=>
x
!==
tx
.
hash
))
setShowTableHash
((
prevState
)
=>
prevState
.
filter
((
x
)
=>
x
!==
tx
.
hash
))
}
}
...
@@ -706,7 +698,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -706,7 +698,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
debug
=
(
event
,
tx
)
=>
{
const
debug
=
(
event
,
tx
)
=>
{
event
.
stopPropagation
()
event
.
stopPropagation
()
if
(
tx
.
isCall
&&
tx
.
envMode
!==
'vm'
)
{
if
(
tx
.
isCall
&&
tx
.
envMode
!==
'vm'
)
{
console
.
log
(
'start debugging'
)
return
(<
ModalDialog
return
(<
ModalDialog
hide=
{
false
}
hide=
{
false
}
handleHide=
{
()
=>
{}
}
handleHide=
{
()
=>
{}
}
...
@@ -714,7 +705,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -714,7 +705,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
/>)
/>)
}
else
{
}
else
{
props
.
event
.
trigger
(
'debuggingRequested'
,
[
tx
.
hash
])
props
.
event
.
trigger
(
'debuggingRequested'
,
[
tx
.
hash
])
console
.
log
(
'trigger '
,
{
tx
:
props
.
event
.
trigger
})
}
}
}
}
...
@@ -723,13 +713,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -723,13 +713,11 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
to
=
tx
.
to
const
to
=
tx
.
to
// const obj = { from, to }
// const obj = { from, to }
const
txType
=
'unknown'
+
(
tx
.
isCall
?
'Call'
:
'Tx'
)
const
txType
=
'unknown'
+
(
tx
.
isCall
?
'Call'
:
'Tx'
)
console
.
log
(
'render unknown transaction '
)
return
(
return
(
<
span
id=
{
`tx${tx.hash}`
}
key=
{
index
}
>
<
span
id=
{
`tx${tx.hash}`
}
key=
{
index
}
>
<
div
className=
"log"
onClick=
{
(
event
)
=>
txDetails
(
event
,
tx
)
}
>
<
div
className=
"log"
onClick=
{
(
event
)
=>
txDetails
(
event
,
tx
)
}
>
{
checkTxStatus
(
receipt
||
tx
,
txType
)
}
{
checkTxStatus
(
receipt
||
tx
,
txType
)
}
{
context
({
from
,
to
,
tx
},
props
.
blockchain
)
}
{
context
({
from
,
to
,
tx
},
props
.
blockchain
)
}
{
console
.
log
(
'under context and checkTxStatus'
)
}
<
div
className=
'buttons'
>
<
div
className=
'buttons'
>
<
div
className=
'debug btn btn-primary btn-sm'
data
-
shared=
'txLoggerDebugButton'
data
-
id=
{
`txLoggerDebugButton${tx.hash}`
}
onClick=
{
(
event
)
=>
debug
(
event
,
tx
)
}
>
Debug
</
div
>
<
div
className=
'debug btn btn-primary btn-sm'
data
-
shared=
'txLoggerDebugButton'
data
-
id=
{
`txLoggerDebugButton${tx.hash}`
}
onClick=
{
(
event
)
=>
debug
(
event
,
tx
)
}
>
Debug
</
div
>
</
div
>
</
div
>
...
@@ -750,7 +738,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -750,7 +738,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
transactionCost
:
tx
.
transactionCost
,
transactionCost
:
tx
.
transactionCost
,
executionCost
:
tx
.
executionCost
executionCost
:
tx
.
executionCost
})
:
null
}
})
:
null
}
{
console
.
log
(
'end'
)
}
</
span
>
</
span
>
)
)
}
}
...
@@ -760,7 +747,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -760,7 +747,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const
to
=
resolvedData
.
contractName
+
'.'
+
resolvedData
.
fn
const
to
=
resolvedData
.
contractName
+
'.'
+
resolvedData
.
fn
// const obj = { from, to }
// const obj = { from, to }
const
txType
=
'knownTx'
const
txType
=
'knownTx'
console
.
log
(
'render unknown transaction '
)
return
(
return
(
<
span
id=
{
`tx${tx.hash}`
}
key=
{
index
}
>
<
span
id=
{
`tx${tx.hash}`
}
key=
{
index
}
>
<
div
className=
"log"
onClick=
{
(
event
)
=>
txDetails
(
event
,
tx
)
}
>
<
div
className=
"log"
onClick=
{
(
event
)
=>
txDetails
(
event
,
tx
)
}
>
...
@@ -788,7 +774,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -788,7 +774,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
transactionCost
:
tx
.
transactionCost
,
transactionCost
:
tx
.
transactionCost
,
executionCost
:
tx
.
executionCost
executionCost
:
tx
.
executionCost
})
:
null
}
})
:
null
}
{
console
.
log
(
'end'
)
}
</
span
>
</
span
>
)
)
}
}
...
@@ -821,8 +806,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -821,8 +806,8 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
return
(
return
(
<
div
style=
{
{
height
:
'323px'
,
flexGrow
:
1
}
}
className=
'panel'
>
<
div
style=
{
{
height
:
'323px'
,
flexGrow
:
1
}
}
className=
'panel'
>
{
console
.
log
({
newstate
})
}
{
console
.
log
({
newstate
})
}
{
console
.
log
({
props
})
}
{
console
.
log
({
_cmdIndex
})
}
{
console
.
log
({
autoCompletState
})
}
{
console
.
log
({
cmdHistory
})
}
<
div
className=
"bar"
>
<
div
className=
"bar"
>
{
/* ${self._view.dragbar} */
}
{
/* ${self._view.dragbar} */
}
<
div
className=
"dragbarHorizontal"
onMouseDown=
{
mousedown
}
id=
'dragId'
></
div
>
<
div
className=
"dragbarHorizontal"
onMouseDown=
{
mousedown
}
id=
'dragId'
></
div
>
...
@@ -891,16 +876,13 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -891,16 +876,13 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
)
)
}
else
if
(
x
.
name
===
'unknownTransaction'
)
{
}
else
if
(
x
.
name
===
'unknownTransaction'
)
{
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}`
}
key=
{
index
}
>
{
renderUnKnownTransactions
(
trans
.
tx
,
trans
.
receipt
,
index
)
}
</
div
>)
return
(<
div
className=
'px-4 block'
data
-
id=
{
`block_tx${trans.tx.hash}`
}
key=
{
index
}
>
{
renderUnKnownTransactions
(
trans
.
tx
,
trans
.
receipt
,
index
)
}
</
div
>)
})
})
}
else
if
(
x
.
name
===
'knownTransaction'
)
{
}
else
if
(
x
.
name
===
'knownTransaction'
)
{
return
x
.
message
.
map
((
trans
)
=>
{
return
x
.
message
.
map
((
trans
)
=>
{
console
.
log
({
trans
},
'first output from deploy'
)
return
(<
div
className=
'px-4 block'
data
-
id=
{
`block_tx${trans.tx.hash}`
}
key=
{
index
}
>
{
renderKnownTransactions
(
trans
.
tx
,
trans
.
receipt
,
trans
.
resolvedData
,
trans
.
logs
,
index
)
}
</
div
>)
return
(<
div
className=
'px-4 block'
data
-
id=
{
`block_tx${trans.tx.hash}`
}
key=
{
index
}
>
{
renderKnownTransactions
(
trans
.
tx
,
trans
.
receipt
,
trans
.
resolvedData
,
trans
.
logs
,
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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment