-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/3404 datil dev support #515
Conversation
…ort multiple Lit RPCs
- Remove incorrect "All tests passed" message when failures occur - Add detailed reporting for passed and failed tests - Include test count in final report - Ensure "All tests passed" only shows when all tests actually pass
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.
👍 Nice work on quick notice, man. Nice enhancements to the local tests too. I added a bunch of nits, but did have a couple of things that I think might be breaking changes that I added comments on too 👍
Co-authored-by: Daryl Collins <daryl@litprotocol.com> Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Daryl Collins <daryl@litprotocol.com> Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Daryl Collins <daryl@litprotocol.com> Signed-off-by: Anson <ansonox@gmail.com>
…anual-gas-limit Signed-off-by: Anson <ansonox@gmail.com>
…m/LIT-Protocol/js-sdk into feature/3404-add-manual-gas-limit
…-limit feat: add custom gas limit
…feature/3404-datil-dev-support
…ort-wrappedkeys LIT-3404 - Add Wrapped Keys support for datil-dev
…make defaulting + required states for SEV checks more explicit.
…ecution are readable - We no longer re-throw a new error with a message containing the stringified error - Error objects stringify to { } so this was destroying our ability to read errors from the `postLitActionValidation()` method
…eGeneratedSessionSigsToEncryptDecryptString
…mpatibility - Moved into a sub-directory for clarity and less wall-of-text on root `tests` directory - Added helper method to handle setting gas and chain parameters depending on the network we're running against - Updated logging to not show fail X's when the tests are passing - Un-commented disabled test for checking duplicate private key being stored to wrapped-keys backend - Removed test checking insufficient funds; this was not actually testing our code, only ethers.
…tests to match reality
…hertext` for keys that we work with from our built-in LIT actions
Since we merged the Wrapped Keys support for Datil-dev
Publishing the same build with the @datil-dev tag
… is called on Habanero
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.
👍 LGTM
context?: LitContractContext | LitContractResolverContext, | ||
rpcUrl?: string | ||
) { | ||
let provider: ethers.providers.JsonRpcProvider; | ||
rpcUrl = rpcUrl ?? DEFAULT_READ_RPC; | ||
rpcUrl = | ||
rpcUrl ?? network === 'datil-dev' ? LIT_RPC.VESUVIUS : LIT_RPC.CHRONICLE; |
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 this is a bug. The following yields different result, and which is what (I think) we want instead.
rpcUrl =
rpcUrl ??
(network === 'datil-dev' ? LIT_RPC.VESUVIUS : LIT_RPC.CHRONICLE);
Changelog
🚀 Features
🐛 Bug Fixes
switchWallet
when minting capacity delegation authsig📚 Documentation
⚙️ Miscellaneous Tasks
testLIT
typoDev
Description
Installation
or
Using the
datil-dev
networkTest command:
❗️❗️Note: I'm failing to run the tests in parallel right now, but they work when running individually. I added aCHUNK_SIZE
feature which would run parallel execution in chunks and I thought that would fix it, but it seems like it might be RPC rate limit issue instead of nonce? not sure.. still to be investigated...❗️❗️UPDATE: contract calls still being reverted, but if gasLimit is set to 5 mil, then parallel executions work fine
Related PRs:
datil-dev
network lit-apps#18