Skip to content

Commit 527410b

Browse files
committed
removes unecessary test
Signed-off-by: Konstantina Blazhukova <[email protected]>
1 parent 9401a7b commit 527410b

File tree

1 file changed

+0
-73
lines changed

1 file changed

+0
-73
lines changed

packages/server/tests/acceptance/rpc_batch1.spec.ts

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { formatTransactionId, numberTo0x, prepend0x } from '@hashgraph/json-rpc-
77
import Constants from '@hashgraph/json-rpc-relay/dist/lib/constants';
88
// Errors and constants from local resources
99
import { predefined } from '@hashgraph/json-rpc-relay/dist/lib/errors/JsonRpcError';
10-
import { Precheck } from '@hashgraph/json-rpc-relay/dist/lib/precheck';
1110
import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types';
1211
import { BLOCK_NUMBER_ERROR, HASH_ERROR } from '@hashgraph/json-rpc-relay/src/lib/validators';
1312
import {
@@ -993,78 +992,6 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
993992
expect(nonceLatest).to.equal(noncePending);
994993
});
995994

996-
it('should have equal nonces (pending and latest) after CN reverted transaction', async () => {
997-
const tx = {
998-
...defaultLondonTransactionData,
999-
to: null,
1000-
data: '0x' + '00'.repeat(5121),
1001-
nonce: await relay.getAccountNonce(accounts[1].address),
1002-
gasLimit: 41484,
1003-
};
1004-
const signedTx = await accounts[1].wallet.signTransaction(tx);
1005-
const txHash = await relay.sendRawTransaction(signedTx);
1006-
await relay.pollForValidTransactionReceipt(txHash);
1007-
const mnResult = await mirrorNode.get(`/contracts/results/${txHash}`);
1008-
1009-
const nonceLatest = await relay.getAccountNonce(accounts[1].address);
1010-
const noncePending = await relay.getAccountNonce(accounts[1].address, 'pending');
1011-
1012-
expect(mnResult.result).to.equal('INSUFFICIENT_GAS');
1013-
expect(nonceLatest).to.equal(noncePending);
1014-
});
1015-
1016-
it('should have equal nonces (pending and latest) after multiple CN reverted transactions', async () => {
1017-
const accountNonce = await relay.getAccountNonce(accounts[1].address);
1018-
const tx1 = {
1019-
...defaultLondonTransactionData,
1020-
to: null,
1021-
data: basicContractJson.bytecode,
1022-
nonce: accountNonce,
1023-
gasLimit: Precheck.transactionIntrinsicGasCost(basicContractJson.bytecode),
1024-
};
1025-
const tx2 = {
1026-
...defaultLondonTransactionData,
1027-
to: accounts[2].address,
1028-
nonce: accountNonce,
1029-
gasLimit: 21000,
1030-
};
1031-
const tx3 = {
1032-
...defaultLondonTransactionData,
1033-
to: null,
1034-
data: basicContractJson.bytecode,
1035-
nonce: accountNonce + 1,
1036-
gasLimit: Precheck.transactionIntrinsicGasCost(basicContractJson.bytecode),
1037-
};
1038-
const signedTx1 = await accounts[1].wallet.signTransaction(tx1);
1039-
const signedTx2 = await accounts[1].wallet.signTransaction(tx2);
1040-
const signedTx3 = await accounts[1].wallet.signTransaction(tx3);
1041-
1042-
const txHash1 = await relay.sendRawTransaction(signedTx1);
1043-
await new Promise((r) => setTimeout(r, 500));
1044-
const txHash2 = await relay.sendRawTransaction(signedTx2);
1045-
await new Promise((r) => setTimeout(r, 500));
1046-
const txHash3 = await relay.sendRawTransaction(signedTx3);
1047-
await Promise.all([
1048-
relay.pollForValidTransactionReceipt(txHash1),
1049-
relay.pollForValidTransactionReceipt(txHash2),
1050-
relay.pollForValidTransactionReceipt(txHash3),
1051-
]);
1052-
1053-
const [mnResult1, mnResult2, mnResult3] = await Promise.all([
1054-
mirrorNode.get(`/contracts/results/${txHash1}`),
1055-
mirrorNode.get(`/contracts/results/${txHash2}`),
1056-
mirrorNode.get(`/contracts/results/${txHash3}`),
1057-
]);
1058-
1059-
const nonceLatest = await relay.getAccountNonce(accounts[1].address);
1060-
const noncePending = await relay.getAccountNonce(accounts[1].address, 'pending');
1061-
1062-
expect(mnResult1.result).to.equal('INSUFFICIENT_GAS');
1063-
expect(mnResult2.result).to.equal('SUCCESS');
1064-
expect(mnResult3.result).to.equal('INSUFFICIENT_GAS');
1065-
expect(nonceLatest).to.equal(noncePending);
1066-
});
1067-
1068995
it('should have equal nonces (pending and latest) for contract reverted transaction', async () => {
1069996
const reverterContract = await Utils.deployContract(
1070997
reverterContractJson.abi,

0 commit comments

Comments
 (0)