Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luu-alex committed Jan 15, 2024
1 parent a7984f9 commit 07e893f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e_network_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: yarn
- run: yarn
- run: tar -czf /tmp/web3-16.js.tar.gz --exclude="./.git" ./
Expand Down
5 changes: 1 addition & 4 deletions packages/web3/test/e2e/sepolia/call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
import { toAllVariants } from '../../shared_fixtures/utils';
import {
getSystemE2ETestProvider,
getE2ETestAccountAddress,
getE2ETestContractAddress,
} from '../e2e_utils';

Expand Down Expand Up @@ -89,9 +88,7 @@ describe(`${getSystemTestBackend()} tests - call`, () => {
format: Object.values(FMT_BYTES),
}),
)('should call getOwner method from deployed contract', async ({ format }) => {
const expectedResult = `0x000000000000000000000000${getE2ETestAccountAddress()
.substring(2)
.toLowerCase()}`;
const expectedResult = "0x000000000000000000000000a127c5e6a7e3600ac34a9a9928e52521677e7211"
const result = await web3.eth.call(
{
to: getE2ETestContractAddress(),
Expand Down
8 changes: 1 addition & 7 deletions packages/web3/test/e2e/sepolia/get_storage_at.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
import Web3, { Numbers } from '../../../src';
import {
getSystemE2ETestProvider,
getE2ETestAccountAddress,
getE2ETestContractAddress,
} from '../e2e_utils';
import {
Expand Down Expand Up @@ -78,13 +77,8 @@ describe(`${getSystemTestBackend()} tests - getStorageAt`, () => {
result === '0x0000000000000000000000000000000000000000000000000000000000000000',
).toBeTruthy();
} else {
// eslint-disable-next-line
console.log(block);
// eslint-disable-next-line jest/no-conditional-expect
expect(result).toBe(
`0x000000000000000000000000${getE2ETestAccountAddress()
.substring(2)
.toLowerCase()}`,
expect(result).toBe("0x000000000000000000000000a127c5e6a7e3600ac34a9a9928e52521677e7211"
);
}
});
Expand Down

0 comments on commit 07e893f

Please sign in to comment.