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

Commit b15678f

Browse files
authored
Merge branch '1.x' into patch-1
2 parents 80a33d1 + dbf659a commit b15678f

File tree

10 files changed

+635
-767
lines changed

10 files changed

+635
-767
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@ jobs:
1919
- uses: actions/setup-node@v1
2020
with:
2121
node-version: 12
22+
2223
- uses: actions/checkout@v2
24+
2325
- uses: actions/cache@v2
2426
id: cache-deps
2527
with:
2628
path: |
2729
node_modules
2830
*/*/node_modules
29-
key: 2-${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
30-
- run: bash ./scripts/install.sh
31+
key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
32+
33+
- run: npm ci
3134
if: steps.cache-deps.outputs.cache-hit != 'true'
35+
3236
- run: bash ./scripts/ci.sh
3337
unit:
3438
runs-on: ubuntu-latest
@@ -41,16 +45,20 @@ jobs:
4145
- uses: actions/setup-node@v1
4246
with:
4347
node-version: ${{ matrix.node }}
48+
4449
- uses: actions/checkout@v2
50+
4551
- uses: actions/cache@v2
4652
id: cache-deps
4753
with:
4854
path: |
4955
node_modules
5056
*/*/node_modules
51-
key: 2-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
52-
- run: bash ./scripts/install.sh
57+
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
58+
59+
- run: npm ci
5360
if: steps.cache-deps.outputs.cache-hit != 'true'
61+
5462
- run: bash ./scripts/ci.sh
5563
e2e:
5664
runs-on: ubuntu-latest
@@ -59,11 +67,11 @@ jobs:
5967
matrix:
6068
testCmd:
6169
[
62-
"unit_and_e2e_clients",
63-
"e2e_ganache",
64-
"e2e_mosaic",
65-
"e2e_browsers",
66-
"e2e_gnosis_dex",
70+
'unit_and_e2e_clients',
71+
'e2e_browsers',
72+
'e2e_ganache',
73+
'e2e_mosaic',
74+
'e2e_gnosis_dex',
6775
]
6876
env:
6977
TEST: ${{ matrix.testCmd }}
@@ -72,16 +80,21 @@ jobs:
7280
with:
7381
node-version: 12
7482
- uses: actions/checkout@v2
83+
7584
- uses: actions/cache@v2
7685
id: cache-deps
86+
if: env.TEST == 'unit_and_e2e_clients' || env.TEST == 'e2e_browsers'
7787
with:
7888
path: |
7989
node_modules
8090
*/*/node_modules
81-
key: 2-${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
82-
- run: bash ./scripts/install.sh
83-
if: steps.cache-deps.outputs.cache-hit != 'true'
91+
key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }}
92+
93+
- run: npm ci
94+
if: (env.TEST == 'unit_and_e2e_clients' || env.TEST == 'e2e_browsers') && steps.cache-deps.outputs.cache-hit != 'true'
95+
8496
- run: bash ./scripts/ci.sh
97+
8598
- name: Send coverage reports to Coveralls
8699
if: env.TEST == 'unit_and_e2e_clients'
87100
uses: coverallsapp/github-action@master

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,11 @@ Released with 1.0.0-beta.37 code base.
274274

275275
### Changed
276276

277+
- Improve RequestManager send method (#3649)
277278
- `npm run build` now uses TSC to compile (.js allowed) and the build folder is now located under `lib` (#3652)
278279
- Modernized web3-core to use newer es syntax (#3652)
279280
- Bumped `web3-providers-ipc` `oboe` version to 2.1.5 (#3661)
281+
- Bump lodash from 4.17.15 to 4.17.19
280282

281283
### Fixed
282284

docs/web3-shh.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -759,25 +759,25 @@ Example
759759

760760
.. code-block:: javascript
761761
762-
var identities = [];
762+
var identities = {};
763763
var subscription = null;
764764
765765
Promise.all([
766-
web3.shh.newSymKey().then((id) => {identities.push(id);}),
767-
web3.shh.newKeyPair().then((id) => {identities.push(id);})
766+
web3.shh.newSymKey().then((id) => {identities.symKey = id;}),
767+
web3.shh.newKeyPair().then((id) => {identities.keyPair = id;})
768768
769769
]).then(() => {
770770
771771
// will receive also its own message send, below
772-
subscription = shh.subscribe("messages", {
773-
symKeyID: identities[0],
772+
subscription = web3.shh.subscribe("messages", {
773+
symKeyID: identities.symKey,
774774
topics: ['0xffaadd11']
775775
}).on('data', console.log);
776776
777777
}).then(() => {
778778
web3.shh.post({
779-
symKeyID: identities[0], // encrypts using the sym key ID
780-
sig: identities[1], // signs the message using the keyPair ID
779+
symKeyID: identities.symKey, // encrypts using the sym key ID
780+
sig: identities.keyPair, // signs the message using the keyPair ID
781781
ttl: 10,
782782
topic: '0xffaadd11',
783783
payload: '0xffffffdddddd1122',

0 commit comments

Comments
 (0)