Skip to content

Commit 395a106

Browse files
committed
cleanup
1 parent b095bf4 commit 395a106

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

packages/eth-rpc-adapter/src/__tests__/subscription.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { afterAll, beforeAll, beforeEach, describe, it } from 'vitest';
66
import { expect } from 'chai';
77
import { parseUnits } from 'ethers/lib/utils';
88

9-
import { ETH_RPC_URL, ETH_RPC_URL_WS, SubsManager, evmAccounts, getAddrSelector } from './utils';
9+
import { ETH_RPC_URL, ETH_RPC_URL_WS, SubsManager, TRANSFER_EVENT_TOPIC, evmAccounts, getAddrSelector } from './utils';
1010
import { IERC20, IERC20__factory } from './types';
1111

1212
const oneAcaErc20 = parseUnits('1', 12);
13-
const TRANSFER_SELECTOR = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef';
1413

1514
describe('eth subscription', () => {
1615
let deployer: Wallet;
@@ -41,7 +40,7 @@ describe('eth subscription', () => {
4140
const sub1 = sm.subscribeLogs({});
4241
const sub2 = sm.subscribeLogs({
4342
topics: [
44-
TRANSFER_SELECTOR,
43+
TRANSFER_EVENT_TOPIC,
4544
null,
4645
[userAddrSelector],
4746
],

packages/eth-rpc-adapter/src/__tests__/utils/consts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const NODE_URL = process.env.ENDPOINT_URL || 'ws://127.0.0.1:9944';
2-
export const KARURA_ETH_RPC_URL = process.env.KARURA_ETH_RPC_URL || 'http://127.0.0.1:8546';
32
export const ETH_RPC_URL = process.env.ETH_RPC_URL || 'http://127.0.0.1:8545';
43
export const ETH_RPC_URL_WS = process.env.ETH_RPC_URL_WS || ETH_RPC_URL.replace('http', 'ws');
54
export const SUBQL_URL = process.env.SUBQL_URL || 'http://127.0.0.1:3001';

packages/eth-rpc-adapter/src/__tests__/utils/eth-rpc-apis.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import axios from 'axios';
22

33
import {
44
ETH_RPC_URL,
5-
KARURA_ETH_RPC_URL,
65
LogHexified,
76
} from './consts';
87
import { JsonRpcError } from '../../server';
@@ -19,7 +18,6 @@ export const rpcGet =
1918
},
2019
});
2120

22-
/* ---------- local rpc methods ---------- */
2321
export const eth_call = rpcGet('eth_call');
2422
export const eth_blockNumber = rpcGet('eth_blockNumber');
2523
export const eth_getBlockByNumber = rpcGet('eth_getBlockByNumber');

0 commit comments

Comments
 (0)