Skip to content

Commit

Permalink
feat: log godwoken components before testing (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShookLyngs authored Sep 19, 2022
1 parent 4904e4f commit 141852d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
31 changes: 31 additions & 0 deletions contracts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@ckb-lumos/base": "^0.17.0",
"@ckb-lumos/hd": "^0.18.0",
"@ckb-lumos/toolkit": "^0.17.0",
"ckb-js-toolkit": "^0.10.2",
"cross-fetch": "^3.1.5",
"jsbi": "^4.3.0",
"keccak256": "^1.0.6",
Expand Down
10 changes: 9 additions & 1 deletion contracts/test/TestStatus.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { ethers, config, network } = require("hardhat");
const { expect } = require("chai");
const { RPC } = require('ckb-js-toolkit');

const startingBalances = {};

Expand All @@ -15,7 +16,14 @@ before("Before testing",() => {
expect(data.accounts.length).to.equal(uniques.length, 'accounts should not be repeated');

data.accounts = data.accounts.map((account) => ethers.utils.computeAddress(account));
console.log(data);

console.log("Network info:", data);
});

it("Log Godwoken components", async () => {
const rpc = new RPC(network.config.url);
const info = await rpc["poly_version"]();
console.log("Godwoken components info:", info.versions);
});

it("Record signers' starting balance", async () => {
Expand Down

0 comments on commit 141852d

Please sign in to comment.