Skip to content

Commit

Permalink
fix: fixed ws_batch2
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Nov 19, 2024
1 parent 57fb497 commit 11c9a39
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/ws-server/tests/acceptance/getStorageAt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
*/

// external resources
import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types';
import { Utils } from '@hashgraph/json-rpc-server/tests/helpers/utils';
import { AliasAccount } from '@hashgraph/json-rpc-server/tests/types/AliasAccount';
import { expect } from 'chai';
import { ethers, WebSocketProvider } from 'ethers';

import { WsTestConstant, WsTestHelper } from '../helper';
import { AliasAccount } from '@hashgraph/json-rpc-server/tests/types/AliasAccount';
import { Utils } from '@hashgraph/json-rpc-server/tests/helpers/utils';
import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types';

describe('@web-socket-batch-2 eth_getStorageAt', async function () {
const METHOD_NAME = 'eth_getStorageAt';
Expand All @@ -51,9 +52,9 @@ describe('@web-socket-batch-2 eth_getStorageAt', async function () {
'0x6080604052348015600f57600080fd5b506007600081905550603f8060256000396000f3fe6080604052600080fdfea2646970667358221220416347bd1607cf1f0e7ec93afab3d5fe283173dd5e6ce3928dce940edd5c1fb564736f6c63430008180033';
// @ts-ignore
const { mirrorNode } = global;
let params: any[],
accounts: AliasAccount[] = [],
ethersWsProvider: WebSocketProvider;
let params: any[], ethersWsProvider: WebSocketProvider;

const accounts: AliasAccount[] = [];

const requestDetails = new RequestDetails({ requestId: 'ws_getStorageAtTest', ipAddress: '0.0.0.0' });

Expand All @@ -79,6 +80,7 @@ describe('@web-socket-batch-2 eth_getStorageAt', async function () {
accounts[0].wallet,
);
const contract = await contractFactory.deploy();
await contract.waitForDeployment();

// prepare transaction params - [contract address, position, blockTag]
params = [contract.target, '0x0', 'latest'];
Expand Down

0 comments on commit 11c9a39

Please sign in to comment.