-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not getting success callback/ receipt with walletconnect with web3.js…
… 1.3.3 - Closes #3891 (#4304) * 🐛 Fix transaction receipt polling technique * ✅ Add unit test for the delay scenario * 🔧 Add configuration option "blockHeaderTimeout" * 📝 Add docs for the new configuration * ✅ Add unit test for the configuration * 🔖 Update change log file * ✅ Fix failing unit test * Update comment I'm just going to commit this since it's a comment change, and so I can provide my approval without it going stale * 🎨 Update default value for blockHeaderTimeout to 10 seconds Co-authored-by: Wyatt Barnes <[email protected]>
- Loading branch information
1 parent
93070a7
commit 40974e9
Showing
8 changed files
with
201 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var chai = require('chai'); | ||
var assert = chai.assert; | ||
var Eth = require('../packages/web3-eth'); | ||
|
||
var eth = new Eth(); | ||
|
||
var setValue = 123; | ||
|
||
describe('web3.eth', function () { | ||
describe('blockHeaderTimeout', function () { | ||
it('should check if blockHeaderTimeout is set to proper value', function () { | ||
assert.equal(eth.blockHeaderTimeout, 10); | ||
assert.equal(eth.Contract.blockHeaderTimeout, 10); | ||
assert.equal(eth.getCode.method.blockHeaderTimeout, 10); | ||
}); | ||
it('should set blockHeaderTimeout for all sub packages is set to proper value, if Eth package is changed', function () { | ||
eth.blockHeaderTimeout = setValue; | ||
|
||
assert.equal(eth.blockHeaderTimeout, setValue); | ||
assert.equal(eth.Contract.blockHeaderTimeout, setValue); | ||
assert.equal(eth.getCode.method.blockHeaderTimeout, setValue); | ||
}); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters