Skip to content

Commit

Permalink
check 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Oct 1, 2023
1 parent e3d4a90 commit ecdd57c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .zombienet-tests/0002-checkStorage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Tuple, compact, metadata } from "../packages/substrate-bindings/dist"
import { getDynamicBuilder } from "../packages/substrate-codegen/dist"
import { connect } from "./utils"
import { BigNumber } from "bignumber.js"

const ALICE = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"

Expand Down Expand Up @@ -45,8 +44,8 @@ export async function run(_nodeName: string, networkInfo: any) {
storageAccount.enc(ALICE),
null,
)
let result2 = storageAccount.dec(result as string)
aliceBalance = new BigNumber(result2?.data?.free).toNumber()
let res = storageAccount.dec(result as string)
aliceBalance = res?.data?.free?.toString()
resolve(chainHeadFollower.unfollow())
}
},
Expand Down
1 change: 1 addition & 0 deletions .zombienet-tests/0003-calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ await new Promise(async (resolve, reject) => {
const chainHeadFollower = chainHead(
true,
(event) => {
console.log("EVENT ===> ", event.type)
if (event.type === "newBlock") {
chainHeadFollower.unpin([event.blockHash])
return
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"devDependencies": {
"@fast-check/vitest": "^0.0.6",
"@types/node": "^20.4.7",
"bignumber.js": "^9.1.2",
"husky": ">=6",
"lint-staged": "^12.4.1",
"prettier": "^3.0.1",
Expand Down

0 comments on commit ecdd57c

Please sign in to comment.