Skip to content

Commit

Permalink
FIx compiling issue on integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Nov 27, 2024
1 parent befd1c0 commit 590831f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abi/interaction.local.net.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ describe("test smart contract interactor", function () {
response = await controller.awaitCompletedExecute(lotteryStatusTxHash);
assert.isTrue(response.returnCode == "ok");
assert.lengthOf(response.values, 1);
assert.equal(response[0].name, "Running");
assert.equal(response.values[0].name, "Running");

// lotteryInfo() (this is a view function, but for the sake of the test, we'll execute it)
let lotteryInfoTransaction = getLotteryInfoInteraction
Expand All @@ -599,7 +599,7 @@ describe("test smart contract interactor", function () {
assert.lengthOf(response.values, 1);

// Ignore "deadline" field in our test
let info = response[0].valueOf();
let info = response.values[0].valueOf();
delete info.deadline;

assert.deepEqual(info, {
Expand Down

0 comments on commit 590831f

Please sign in to comment.