diff options
Diffstat (limited to 'packages/dev-tools-pages/ts/pages/Cov.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/pages/Cov.tsx | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/packages/dev-tools-pages/ts/pages/Cov.tsx b/packages/dev-tools-pages/ts/pages/Cov.tsx index 01966537c..197ff174d 100644 --- a/packages/dev-tools-pages/ts/pages/Cov.tsx +++ b/packages/dev-tools-pages/ts/pages/Cov.tsx @@ -22,19 +22,25 @@ function Cov() { coverage. </IntroLead> <IntroAside> - <Code language="js.diff"> + <Code + language="javascript" + diff + gutterLength={2} + gutter={[4, undefined, 4, 4, 4, undefined, 4, 2, 2, 2]} + > {`+function executeTransaction(uint transactionId) - public -+notExecuted(transactionId) -+pastTimeLock(transactionId) + public ++ notExecuted(transactionId) ++ fullyConfirmed(transactionId) ++ pastTimeLock(transactionId) { -+Transaction storage tx = transactions[transactionId] -+tx.executed = true -+if (tx.destination.call.value(tx.value)(tx.data)) -+Execution(transactionId) -else { --ExecutionFailure(transactionId) - ++ Transaction storage tx = transactions[transactionId] ++ tx.executed = true ++ if (tx.destination.call.value(tx.value)(tx.data)) ++ Execution(transactionId) + else { +- ExecutionFailure(transactionId) +- tx.executed = false } }`} </Code> @@ -69,7 +75,7 @@ else { <Tabs> <TabBlock title="Sol-compiler"> - <Code language="js"> + <Code language="javascript"> {`import { SolCompilerArtifactAdapter } from '@0x/sol-trace'; // Both artifactsDir and contractsDir are optional and will be fetched from compiler.json if not passed in |