From 9cf055c1596d8abce854fea8f4e209573d6df7c8 Mon Sep 17 00:00:00 2001 From: Megan Pearson Date: Wed, 24 Oct 2018 14:31:07 +0200 Subject: Add highlighter.js; basic styling for .diff classes; Start of code block in cov --- packages/dev-tools-pages/ts/pages/Cov.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'packages/dev-tools-pages/ts/pages') 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. - - {`import { SolCompilerArtifactAdapter } from '@0x/sol-trace'; + + {`+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);`} + } +}`} -- cgit v1.2.3