Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit a049e06

Browse files
committed
remove build
1 parent 27f53e8 commit a049e06

File tree

4 files changed

+53
-5
lines changed

4 files changed

+53
-5
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,17 @@ Released with 1.0.0-beta.37 code base.
383383

384384
- Accidental commit (yarn-error.log) (#4062)
385385

386+
## [1.4.0]
387+
388+
### Added
389+
390+
- Berlin Transaction Support (#4083)
391+
392+
### Changed
393+
394+
### Removes
395+
396+
386397
## [Unreleased]
387398

388-
## [1.3.7]
399+
## [1.4.1]

docs/web3-eth.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ Example
15341534

15351535
.. code-block:: javascript
15361536
1537-
var Tx = require('ethereumjs-tx').Transaction;
1537+
var Tx = require('@ethereumjs/tx').Transaction;
15381538
var privateKey = Buffer.from('e331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109', 'hex');
15391539
15401540
var rawTx = {

test/e2e.method.signing.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
var assert = require('assert');
2-
var EJSCommon = require('ethereumjs-common');
3-
var EJSTx = require('ethereumjs-tx');
42
var Basic = require('./sources/Basic');
53
var utils = require('./helpers/test.utils');
64
var Web3 = utils.getWeb3();
@@ -223,7 +221,7 @@ describe('transaction and message signing [ @E2E ]', function() {
223221
await web3.eth.accounts.signTransaction(txObject, wallet[0].privateKey);
224222
assert.fail()
225223
} catch (err) {
226-
assert(err.message.includes('gas limit is too low'));
224+
assert(err.message.includes('gasLimit is too low'));
227225
}
228226
})
229227

test/eth.accounts.signTransaction.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ var common = {
1515
harfork: 'petersburg',
1616
};
1717

18+
var commonBerlin = {
19+
baseChain: 'mainnet',
20+
customChain: {
21+
name: 'custom-network',
22+
networkId: 1,
23+
chainId: 1,
24+
},
25+
hardfork: 'berlin'
26+
};
27+
28+
var accessList = [
29+
{
30+
address: '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55',
31+
storageKeys: '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55'
32+
}
33+
];
34+
1835
var clone = function (object) { return object ? _.clone(object) : []; };
1936

2037
var tests = [
@@ -467,6 +484,28 @@ var tests = [
467484
},
468485
error: true
469486
},
487+
{
488+
address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23',
489+
iban: 'XE0556YCRTEZ9JALZBSCXOK4UJ5F3HN03DV',
490+
privateKey: '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318',
491+
transaction: {
492+
chainId: 1,
493+
nonce: 0,
494+
gasPrice: "20000000000",
495+
gas: 21000,
496+
to: '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55',
497+
toIban: 'XE04S1IRT2PR8A8422TPBL9SR6U0HODDCUT', // will be switched to "to" in the test
498+
value: "1000000000",
499+
data: "",
500+
common: commonBerlin,
501+
accessList: accessList
502+
},
503+
// signature from eth_signTransaction
504+
rawTransaction: "0xf868808504a817c80082520894f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca008026a0afa02d193471bb974081585daabf8a751d4decbb519604ac7df612cc11e9226da04bf1bd55e82cebb2b09ed39bbffe35107ea611fa212c2d9a1f1ada4952077118",
505+
oldSignature: "0xf868808504a817c80082520894f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca008026a0afa02d193471bb974081585daabf8a751d4decbb519604ac7df612cc11e9226da04bf1bd55e82cebb2b09ed39bbffe35107ea611fa212c2d9a1f1ada4952077118",
506+
transactionHash: "0xab0f71614c37231d71ae521ce188a9c7c9d5e976124a91f62f9f125348dd0326",
507+
messageHash: "0xab0f71614c37231d71ae521ce188a9c7c9d5e976124a91f62f9f125348dd0326"
508+
},
470509
];
471510

472511
describe("eth", function () {

0 commit comments

Comments
 (0)