Skip to content

Commit

Permalink
update address
Browse files Browse the repository at this point in the history
  • Loading branch information
luu-alex committed Jan 16, 2024
1 parent 7eba4f6 commit 81cec38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/web3/test/e2e/get_balance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ describe(`${getSystemTestBackend()} tests - getBalance`, () => {
'pending',
'safe',
'finalized',
'blockHash',
'blockNumber',
],
format: [FMT_NUMBER.BIGINT, FMT_NUMBER.HEX, FMT_NUMBER.STR],
}),
)('getBalance', async ({ block, format }) => {
const result = await web3.eth.getBalance(getE2ETestAccountAddress(), blockData[block], {
const address = getSystemTestBackend() === 'sepolia' ? '0xa127C5E6a7E3600Ac34A9a9928E52521677e7211' : '0x98AF911164f9d4E0f5983ed114949c3Bfe3ADc9d'
const result = await web3.eth.getBalance(address, blockData[block], {
number: format as FMT_NUMBER,
bytes: FMT_BYTES.HEX,
});
Expand All @@ -84,7 +86,7 @@ describe(`${getSystemTestBackend()} tests - getBalance`, () => {
expect(result).toBe(expectedBalance);
break;
case 'NUMBER_BIGINT':
// eslint-disable-next-line jest/no-conditional-expect
// eslint-dgit cisable-next-line jest/no-conditional-expect
expect(result).toBe(BigInt(expectedBalance));
break;
default:
Expand Down
3 changes: 2 additions & 1 deletion packages/web3/test/e2e/get_transaction_count.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ describe(`${getSystemTestBackend()} tests - getTransactionCount`, () => {
],
}),
)('getTransactionCount', async ({ block }) => {
const address = getSystemTestBackend() === 'sepolia' ? '0xa127C5E6a7E3600Ac34A9a9928E52521677e7211' : '0x98AF911164f9d4E0f5983ed114949c3Bfe3ADc9d'
const result = await web3.eth.getTransactionCount(
getE2ETestAccountAddress(),
address,
blockData[block],
);

Expand Down

0 comments on commit 81cec38

Please sign in to comment.