-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Init web3-test-utils Package
#5426
Conversation
|
Your Render PR Server URL is https://web3js-docs-pr-5426.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-ccg0adsgqg4cdq4trpn0. |
|
This pull request introduces 1 alert when merging 56d0609 into bc39fe9 - view on LGTM.com new alerts:
|
| | SupportedProviders<API> | ||
| | Web3ContextInitOptions<API, RegisteredSubs>, | ||
| ) { | ||
| console.log(providerOrContext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its for local debugging so should be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this PR is still a draft and not ready for review
| "ts-jest": "^28.0.7", | ||
| "typescript": "^4.7.4" | ||
| "typescript": "^4.7.4", | ||
| "web3-test-utils": "0.1.0-alpha.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will create cyclic dependency? as testing utils will use accounts pkg for account creation.
| "web3-eth-accounts": "^4.0.1-alpha.0", | ||
| "web3-providers-http": "^4.0.1-alpha.0" | ||
| "web3-providers-http": "^4.0.1-alpha.0", | ||
| "web3-test-utils": "0.1.0-alpha.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, cyclic dependency question?
| return { address: newAccount.address, privateKey: newAccount.privateKey }; | ||
| } | ||
|
|
||
| const fundGethAccount = async (fundeeAddress: Address, fundAmount: BigInt) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly logic for funding test accounts will remain same, we just can pass from address ( or coinbase in case of geth, or one of 10 pre funded ganache acct) or any provided by user. so can we omit diff implementation for diff nodes.
|
This pull request introduces 1 alert when merging 6e0210e into 7e236d0 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 4b23a08 into 7e236d0 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 0d1c8b1 into 7e236d0 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 1291e52 into 7e236d0 - view on LGTM.com new alerts:
|
No description provided.