File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/resources/template Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1212< style >
1313h4 {
1414 margin : 1px ;
15+ font-family : Courier;
1516}
1617# parent {
1718 position : absolute;
202203 return ;
203204 }
204205
206+ var gas = trace . gas ;
207+ var gasCost = trace . gasCost ;
208+ var gasDiv = document . getElementById ( "gas" ) ;
209+ gasDiv . innerHTML = "gas: " + gas + " - gasCost: " + gasCost ;
210+
205211 var stack = trace . stack ;
206212 var stackTable = document . createElement ( "table" ) ;
207213 for ( var i = stack . length - 1 ; i >= 0 ; i -- ) {
@@ -316,6 +322,7 @@ <h4>Source: $fileName - Tx Hash: $txHash</h4>
316322 < div id ="editor ">
317323 < div id ="aceEditor "> $source</ div >
318324 < div id ="statemachine ">
325+ < div id ="gas "> </ div >
319326 < h3 > Stack</ h3 >
320327 < div id ="stack "> </ div >
321328 < h3 > Memory</ h3 >
You can’t perform that action at this time.
0 commit comments