Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Make sure to pass files when starting debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
haltman-at committed Nov 28, 2018
1 parent 4d7efef commit 28c3c30
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/truffle-debugger/test/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe("Contexts", function() {

var abstractions;
var artifacts;
var files;

before("Create Provider", async function() {
provider = Ganache.provider({ seed: "debugger", gasLimit: 7000000 });
Expand All @@ -87,6 +88,7 @@ describe("Contexts", function() {
let prepared = await prepareContracts(provider, sources, migrations);
abstractions = prepared.abstractions;
artifacts = prepared.artifacts;
files = prepared.files;
});

it("returns view of addresses affected", async function() {
Expand All @@ -102,6 +104,7 @@ describe("Contexts", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});
debug("debugger ready");
Expand Down
3 changes: 3 additions & 0 deletions packages/truffle-debugger/test/data/ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ describe("Variable IDs", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});

Expand Down Expand Up @@ -221,6 +222,7 @@ describe("Variable IDs", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});

Expand All @@ -244,6 +246,7 @@ describe("Variable IDs", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});

Expand Down
4 changes: 4 additions & 0 deletions packages/truffle-debugger/test/endstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe("End State", function() {

var abstractions;
var artifacts;
var files;

before("Create Provider", async function() {
provider = Ganache.provider({ seed: "debugger", gasLimit: 7000000 });
Expand All @@ -53,6 +54,7 @@ describe("End State", function() {
let prepared = await prepareContracts(provider, sources);
abstractions = prepared.abstractions;
artifacts = prepared.artifacts;
files = prepared.files;
});

it("correctly marks a failed transaction as failed", async function() {
Expand All @@ -69,6 +71,7 @@ describe("End State", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});

Expand All @@ -84,6 +87,7 @@ describe("End State", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});

Expand Down
3 changes: 3 additions & 0 deletions packages/truffle-debugger/test/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe("Reset Button", function() {

var abstractions;
var artifacts;
var files;

before("Create Provider", async function() {
provider = Ganache.provider({ seed: "debugger", gasLimit: 7000000 });
Expand All @@ -48,6 +49,7 @@ describe("Reset Button", function() {
let prepared = await prepareContracts(provider, sources);
abstractions = prepared.abstractions;
artifacts = prepared.artifacts;
files = prepared.files;
});

it("Correctly resets after finishing", async function() {
Expand All @@ -57,6 +59,7 @@ describe("Reset Button", function() {

let bugger = await Debugger.forTx(txHash, {
provider,
files,
contracts: artifacts
});

Expand Down

0 comments on commit 28c3c30

Please sign in to comment.