diff --git a/packages/relay/tests/lib/eth.spec.ts b/packages/relay/tests/lib/eth.spec.ts index edee8e73d..809960f6c 100644 --- a/packages/relay/tests/lib/eth.spec.ts +++ b/packages/relay/tests/lib/eth.spec.ts @@ -29,7 +29,7 @@ import cache from 'js-cache'; dotenv.config({ path: path.resolve(__dirname, '../test.env') }); import { RelayImpl } from '@hashgraph/json-rpc-relay'; import { EthImpl } from '../../src/lib/eth'; -import { MirrorNodeClient } from '../../src/lib/clients/mirrorNodeClient'; +import MirrorNodeClient from '../../src/lib/clients/mirrorNodeClient'; import { MirrorNode } from '../../src/lib/mirrorNode'; import { expectUnsupportedMethod } from '../helpers'; @@ -37,7 +37,6 @@ import pino from 'pino'; import { Block, Transaction } from '../../src/lib/model'; import constants from '../../src/lib/constants'; import { SDKClient } from '../../src/lib/clients'; -import { TextEncoder } from 'util'; const logger = pino(); const registry = new Registry(); const Relay = new RelayImpl(logger, registry); @@ -1336,6 +1335,7 @@ describe('Eth calls using MirrorNode', async function () { }, 'latest') sinon.assert.calledWith(sdkClientStub.submitContractCallQuery, contractAddress2, contractCallData, 400_000, contractAddress1, 'eth_call'); + expect(result).to.equal("0x00") }); it('eth_call with no data', async function () { @@ -1346,13 +1346,14 @@ describe('Eth calls using MirrorNode', async function () { } ); - await ethImpl.call({ + var result = await ethImpl.call({ "from": contractAddress1, "to": contractAddress2, "gas": maxGasLimitHex }, 'latest') sinon.assert.calledWith(sdkClientStub.submitContractCallQuery, contractAddress2, undefined, maxGasLimit, contractAddress1, 'eth_call'); + expect(result).to.equal("0x00") }); it('eth_call with no from address', async function () { @@ -1370,6 +1371,7 @@ describe('Eth calls using MirrorNode', async function () { }, 'latest') sinon.assert.calledWith(sdkClientStub.submitContractCallQuery, contractAddress2, contractCallData, maxGasLimit, undefined, 'eth_call'); + expect(result).to.equal("0x00") }); it('eth_call with all fields', async function () { @@ -1388,6 +1390,7 @@ describe('Eth calls using MirrorNode', async function () { }, 'latest') sinon.assert.calledWith(sdkClientStub.submitContractCallQuery, contractAddress2, contractCallData, maxGasLimit, contractAddress1, 'eth_call'); + expect(result).to.equal("0x00") }); }); }); diff --git a/packages/server/tests/acceptance/erc20.spec.ts b/packages/server/tests/acceptance/erc20.spec.ts index a04aee950..4fc7dc5f9 100644 --- a/packages/server/tests/acceptance/erc20.spec.ts +++ b/packages/server/tests/acceptance/erc20.spec.ts @@ -360,4 +360,4 @@ describe('ERC20 Acceptance Tests', async function () { const evmAddress = Utils.idToEvmAddress(htsResult.receipt.tokenId.toString()); return new ethers.Contract(evmAddress, abi, accounts[0].wallet); }; -}); \ No newline at end of file +});