Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"update-docs": "scripts/update-docs.sh"
},
"devDependencies": {
"@types/jest": "^24.0.9",
"jest": "^24.1.0",
"@types/jest": "^24.0.13",
"jest": "^24.8.0",
"lerna": "^3.4.3",
"rimraf": "^2.6.2",
"ts-jest": "^24.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/abi/src/encoder/mediate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class Mediate {
case 'fixedArray':
return (this._value as Mediate[])
.map((mediate, index) =>
// @ts-ignore toString doesn't take any args
mediate
.init(Mediate.offsetFor(this._value as Mediate[], index))
// @ts-ignore toString doesn't take any args
.toString(16)
)
.join('');
Expand All @@ -113,9 +113,9 @@ class Mediate {
case 'fixedArray':
return (this._value as Mediate[])
.map((mediate: Mediate, index: number) =>
// @ts-ignore toString doesn't take any args
mediate
.closing(Mediate.offsetFor(this._value as Mediate[], index))
// @ts-ignore toString doesn't take any args
.toString(16)
)
.join('');
Expand All @@ -124,21 +124,21 @@ class Mediate {
const prefix = padU32((this._value as Mediate[]).length);
const inits = (this._value as Mediate[])
.map((mediate: Mediate, index: number) =>
// @ts-ignore toString doesn't take any args
mediate
.init(
offset + Mediate.offsetFor(this._value as Mediate[], index) + 32
)
// @ts-ignore toString doesn't take any args
.toString(16)
)
.join('');
const closings = (this._value as Mediate[])
.map((mediate: Mediate, index: number) =>
// @ts-ignore toString doesn't take any args
mediate
.closing(
offset + Mediate.offsetFor(this._value as Mediate[], index)
)
// @ts-ignore toString doesn't take any args
.toString(16)
)
.join('');
Expand Down
2 changes: 2 additions & 0 deletions packages/api/src/format/input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ describe('format/input', () => {
it(`formats ${input} address as address`, () => {
const block: FilterOptions = {};

// @ts-ignore
block[input] = address;
const formatted = inFilter(block)[input];

Expand All @@ -141,6 +142,7 @@ describe('format/input', () => {
it(`formats ${input} number as blockNumber`, () => {
const block: FilterOptions = {};

// @ts-ignore
block[input] = 0x123;
const formatted = inFilter(block)[input];

Expand Down
4 changes: 4 additions & 0 deletions packages/api/src/format/output.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe('format/output', () => {
it(`formats ${input} number as hexnumber`, () => {
const block: SerializedBlock = {};

// @ts-ignore
block[input as keyof SerializedBlock] = 0x123;
const formatted = outBlock(block)[input as keyof Block];

Expand All @@ -113,6 +114,7 @@ describe('format/output', () => {
it(`formats ${input} number as Date`, () => {
const block: SerializedBlock = {};

// @ts-ignore
block[input as keyof SerializedBlock] = 0x57513668;
const formatted = outBlock(block)[input as keyof Block];

Expand Down Expand Up @@ -375,6 +377,7 @@ describe('format/output', () => {
it(`formats ${input} number as hexnumber`, () => {
const block: SerializedReceipt = {};

// @ts-ignore
block[input as keyof SerializedReceipt] = 0x123;
const formatted = outReceipt(block)[input as keyof Receipt];

Expand Down Expand Up @@ -460,6 +463,7 @@ describe('format/output', () => {
it(`formats ${input} number as hexnumber`, () => {
const block: SerializedTransaction = {};

// @ts-ignore
block[input as keyof SerializedTransaction] = 0x123;
const formatted = outTransaction(block)[
input as keyof SerializedTransaction
Expand Down
5 changes: 3 additions & 2 deletions packages/electron/src/runParity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ export async function runParity (
}
logger()('@parity/parity')(data.toString());
};
parity.stdout.on('data', callback);
parity.stderr.on('data', callback);

parity.stdout && parity.stdout.on('data', callback);
parity.stderr && parity.stderr.on('data', callback);

parity.on('error', err => {
onParityError(err);
Expand Down
2 changes: 1 addition & 1 deletion packages/light.js-react/src/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import light, { withOneObservable } from './';
Enzyme.configure({ adapter: new Adapter() });
const { mount } = Enzyme;

const MockComponent = toClass(props => <div>{JSON.stringify(props)}</div>);
const MockComponent = toClass(props => <div>{JSON.stringify(props)}</div>) as any;
const mockRpc$ = () => of('bar');

describe('withOneObservable', () => {
Expand Down
Loading