Skip to content

Commit

Permalink
Merge branch '4.x' into fix/typo
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Mar 12, 2024
2 parents f754388 + 9657b86 commit 30d5a71
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs/docs/guides/glossary/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,24 @@ contract Test {
```json title='Resulting JSON ABI'
[
{
"type": "constructor"
"type": "constructor",
"stateMutability": "nonpayable",
"inputs": [{"internalType":"uint256","name":"testInt","type":"uint256"}],
},
{
"type": "event"
"type": "event",
"name": "Event",
"inputs": [{"indexed":true,"internalType":"uint256","name":"b","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"c","type":"bytes32"}],
"anonymous": false,
},
{
"type": "event"
"type": "event",
"name": "Event2",
"inputs": [{"indexed":true,"internalType":"uint256","name":"b","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"c","type":"bytes32"}],
"anonymous": false,
},
{
"type": "function"
"type": "function",
"name": "foo",
"stateMutability": "nonpayable",
"inputs": [{"internalType":"uint256","name":"b","type":"uint256"},{"internalType":"bytes32","name":"c","type":"bytes32"}],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ describe('contract defaults (extra)', () => {
});

describeIf(isWs)('blockHeaderTimeout', () => {
it('should use "blockHeaderTimout" on "instance" level', async () => {
it('should use "blockHeaderTimeout" on "instance" level', async () => {
contract = new Contract(GreeterAbi, undefined, {
provider: getSystemTestProvider(),
});
Expand Down
6 changes: 3 additions & 3 deletions packages/web3-utils/src/chunk_response_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export class ChunkResponseParser {
private _clearQueues: (() => void) | undefined;
private readonly eventEmitter: EventEmitter;
private readonly autoReconnect: boolean;
private readonly chunkTimout: number;
private readonly chunkTimeout: number;

public constructor(eventEmitter: EventEmitter, autoReconnect: boolean) {
this.eventEmitter = eventEmitter;
this.autoReconnect = autoReconnect;
this.chunkTimout = 1000 * 15;
this.chunkTimeout = 1000 * 15;
}
private clearQueues(): void {
if (typeof this._clearQueues === 'function') {
Expand Down Expand Up @@ -83,7 +83,7 @@ export class ChunkResponseParser {
error: { code: 2, message: 'Chunk timeout' },
}),
);
}, this.chunkTimout);
}, this.chunkTimeout);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('chunk_response_parser', () => {

it('lastChunkTimeout error', async () => {
// @ts-expect-error set private property
parser.chunkTimout = 10;
parser.chunkTimeout = 10;
parser.parseResponse(
'{"jsonrpc":"2.0","id":"96aa3f13-077c-4c82-a64a-64b8626f8192","result":"0x141414141',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ const main = async () => {
end = new Date();
console.log("websocket test successful")
} catch (e) {
console.warn("error occured during ws test, on attempt: ", attempt, "program ran for: ", attempt ,"minutes with error: ", e)
console.warn("error occurred during ws test, on attempt: ", attempt, "program ran for: ", attempt ,"minutes with error: ", e)
}
console.log("start", start)
console.log("end", end)
process.exit();
}

main();
main();

0 comments on commit 30d5a71

Please sign in to comment.