aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/pages/Cov.tsx
diff options
context:
space:
mode:
authorMegan Pearson <megan.e.pearson@gmail.com>2018-10-24 20:31:07 +0800
committerAugust Skare <post@augustskare.no>2018-10-25 19:13:00 +0800
commit9cf055c1596d8abce854fea8f4e209573d6df7c8 (patch)
tree7b8caf48a0c578358d0f8fe464e836ce5c69b389 /packages/dev-tools-pages/ts/pages/Cov.tsx
parent16b515707823f7f60f641665a3a96b3092d881ee (diff)
downloaddexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.tar
dexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.tar.gz
dexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.tar.bz2
dexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.tar.lz
dexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.tar.xz
dexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.tar.zst
dexon-sol-tools-9cf055c1596d8abce854fea8f4e209573d6df7c8.zip
Add highlighter.js; basic styling for .diff classes; Start of code block in cov
Diffstat (limited to 'packages/dev-tools-pages/ts/pages/Cov.tsx')
-rw-r--r--packages/dev-tools-pages/ts/pages/Cov.tsx18
1 files changed, 14 insertions, 4 deletions
diff --git a/packages/dev-tools-pages/ts/pages/Cov.tsx b/packages/dev-tools-pages/ts/pages/Cov.tsx
index 8fd1ace43..01966537c 100644
--- a/packages/dev-tools-pages/ts/pages/Cov.tsx
+++ b/packages/dev-tools-pages/ts/pages/Cov.tsx
@@ -22,11 +22,21 @@ function Cov() {
coverage.
</IntroLead>
<IntroAside>
- <Code language="js">
- {`import { SolCompilerArtifactAdapter } from '@0x/sol-trace';
+ <Code language="js.diff">
+ {`+function executeTransaction(uint transactionId)
+ public
++notExecuted(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)
-// Both artifactsDir and contractsDir are optional and will be fetched from compiler.json if not passed in
-const artifactAdapter = new SolCompilerArtifactAdapter(artifactsDir, contractsDir);`}
+ }
+}`}
</Code>
</IntroAside>
</Intro>