Skip to content

Commit

Permalink
Move test vectors to a custom repo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 24, 2024
1 parent 22e4f2b commit 81e7ddf
Show file tree
Hide file tree
Showing 21 changed files with 6 additions and 2,069 deletions.
12 changes: 3 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "test/vectors/ethereum-tests"]
path = test/vectors/ethereum-tests
url = https://github.com/ethereum/tests.git
[submodule "test/vectors/ethers"]
path = test/vectors/ethers
url = https://github.com/ethers-io/ethers.js.git
[submodule "test/vectors/viem"]
path = test/vectors/viem
url = https://github.com/wevm/viem.git
[submodule "test/vectors"]
path = test/vectors
url = https://github.com/paulmillr/eth-vectors.git
2 changes: 1 addition & 1 deletion benchmark/rlp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { compare, utils as butils } from 'micro-bmark';
import { RLP } from '@ethereumjs/rlp';
import { RLP as microrlp } from '../lib/esm/tx.js';
import { RLP as microrlp } from '../lib/esm/rlp.js';
import { Rlp as cubane } from '@hazae41/cubane';
import { Writable } from '@hazae41/binary';

Expand Down
2 changes: 1 addition & 1 deletion test/rlp.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { deepStrictEqual, throws } from 'node:assert';
import { describe, should } from 'micro-should';
import { hexToBytes } from '@noble/hashes/utils';
import { RLP } from '../lib/esm/tx.js';
import { RLP } from '../lib/esm/rlp.js';
import { ethHex, ethHexNoLeadingZero } from '../lib/esm/utils.js';
import { ENCODE_TESTS, DECODE_TESTS, INVALID } from './vectors/monorepo/rlp.js';
import { getEthersVectors, getViemVectors } from './util.js';
Expand Down
2 changes: 1 addition & 1 deletion test/tx.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { addr, Transaction, messenger } from '../lib/esm/index.js';
import { RawTx, RlpTx, __tests } from '../lib/esm/tx.js';
import { add0x, createDecimal, ethHex, formatters } from '../lib/esm/utils.js';
import { default as TX_VECTORS } from './vectors/transactions.json' assert { type: 'json' };
import { default as EIP155_VECTORS } from './vectors/eip155.json' assert { type: 'json' };
import { default as EIP155_VECTORS } from './vectors/eips/eip155.json' assert { type: 'json' };
import * as ethTests from './vectors/eth-tests-tx-vectors.js';
import { getEthersVectors, getViemVectors } from './util.js';

Expand Down
189 changes: 0 additions & 189 deletions test/vectors/eip155.json

This file was deleted.

Loading

0 comments on commit 81e7ddf

Please sign in to comment.