From 1aed9d56815f478292bfb3d06e2f5754e13d3398 Mon Sep 17 00:00:00 2001 From: Joel Torstensson Date: Fri, 26 Jul 2019 11:45:49 +0200 Subject: [PATCH 1/2] fix(util): Bind correct context to safeSendEth --- src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index d1ca11ab..7de30db3 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -16,7 +16,7 @@ const getMessageConsent = (did, timestamp) => { } const safeEthSend = (ethereum, data, callback) => { - const send = Boolean(ethereum.sendAsync) ? ethereum.sendAsync : ethereum.send + const send = (Boolean(ethereum.sendAsync) ? ethereum.sendAsync : ethereum.send).bind(ethereum) return new Promise((resolve, reject) => { send(data, function(err, result) { if (err) reject(err) From ac179796de673281b3a6621fdaaa019f4ac1ebff Mon Sep 17 00:00:00 2001 From: Joel Torstensson Date: Fri, 26 Jul 2019 11:50:12 +0200 Subject: [PATCH 2/2] Release v1.10.3 --- README.md | 1 + RELEASE-NOTES.md | 3 +++ package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ed6c8ba..ce9e4b54 100644 --- a/README.md +++ b/README.md @@ -647,6 +647,7 @@ Opens the 3Box associated with the given address | opts.pinningNode | String | A string with an ipfs multi-address to a 3box pinning node | | opts.ipfs | Object | A js-ipfs ipfs object | | opts.addressServer | String | URL of the Address Server | +| opts.contentSignature | String | A signature, provided by a client of 3box using the private keys associated with the given address, of the 3box consent message | diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 1b1157a1..d110cb6f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,8 @@ # Release Notes +## v1.10.3 - 2019-07-26 +* fix: resolves issue with portis and fortmatic web3 providers + ## v1.10.2 - 2019-07-25 * feat: allow `consentSignature` to be passed as an option to `openBox` diff --git a/package.json b/package.json index c0e31672..7e87d4a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "3box", - "version": "1.10.2", + "version": "1.10.3", "description": "Interact with user data", "main": "lib/3box.js", "directories": {