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

Commit 57c7b67

Browse files
authored
Merge branch '1.x' into feat/use-blooms-lib
2 parents 3796fae + 400d24b commit 57c7b67

File tree

6 files changed

+25
-4
lines changed

6 files changed

+25
-4
lines changed

packages/web3/angular-patch.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const fs = require('fs');
2+
const f = '../../node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js';
3+
4+
// This is because we have to replace the `node:false` in the `/angular-cli-files/models/webpack-configs/browser.js`
5+
// with `node: {crypto: true, stream: true}` to allow web3 to work with angular (as they enforce node: false.)
6+
// as explained here - https://github.com/ethereum/web3.js/issues/2260#issuecomment-458519127
7+
if (fs.existsSync(f)) {
8+
fs.readFile(f, 'utf8', function(err, data) {
9+
if (err) {
10+
return console.log(err);
11+
}
12+
var result = data.replace(/node: false/g, 'node: {crypto: true, stream: true}');
13+
fs.writeFile(f, result, 'utf8', function(err) {
14+
if (err) return console.log(err);
15+
});
16+
});
17+
}

packages/web3/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"author": "ethereum.org",
2121
"types": "types/index.d.ts",
2222
"scripts": {
23-
"dtslint": "dtslint types --onlyTestTsNext"
23+
"dtslint": "dtslint types --onlyTestTsNext",
24+
"postinstall": "node angular-patch.js"
2425
},
2526
"authors": [
2627
{

scripts/ci.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Travis CI matrix job selector
55
# -----------------------------
66

7+
# Exit immediately on error
8+
set -o errexit
9+
710
if [ "$TEST" = "unit" ]; then
811

912
npm run build

scripts/e2e.geth.automine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ geth-dev-assistant --period 2 --accounts 1 --tag 'stable'
3030
istanbul cover _mocha -- \
3131
--reporter spec \
3232
--grep 'E2E' \
33-
--timeout 10000 \
33+
--timeout 15000 \
3434
--exit
3535

3636
# Copy cov for this run to a temp file we can combine later and send to coveralls

scripts/e2e.geth.instamine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ geth-dev-assistant --accounts 1 --tag 'stable'
3030
GETH_INSTAMINE=true istanbul cover _mocha -- \
3131
--reporter spec \
3232
--grep 'E2E' \
33-
--timeout 10000 \
33+
--timeout 15000 \
3434
--exit
3535

3636
# Copy cov for this run to a temp file we can combine later and send to coveralls

test/e2e.method.signing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('transaction and message signing [ @E2E ]', function() {
5151
assert(receipt.status === true);
5252
});
5353

54-
it('sendSignedTransaction (with eth.accounts.signTransaction)', async function(){
54+
it.skip('sendSignedTransaction (with eth.accounts.signTransaction)', async function(){
5555
var source = wallet[0].address
5656
var destination = wallet[1].address;
5757

0 commit comments

Comments
 (0)