-
Notifications
You must be signed in to change notification settings - Fork 0
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
[NayNay] New SDK RC integration #262
Conversation
- updated CLI with new sdk rc, and made changes to reflect the changes from core/sdk - updated network type defualt to four-nodes - added jump-start network to the initialization of entropy for both cli and tui - updated all tests to reflect changes
tests/account.test.ts
Outdated
// Naynay entropy instance required here as @JesseAbram brought to attn that running jumpstart using the charlie seed will result in errors. | ||
// the error found here was: RpcError: 1014: Priority is too low: (4471 vs 4471): The transaction has too low priority to replace another transaction already in the pool. | ||
// which indicated a potential nonce issue, where the solution would be to manually wait for ~50 blocks to make any subsequent calls to the network. However, | ||
// using naynay instance (fresh seed) jump start and the subsequent calls to the network (i.e register), the flow worked without issues. | ||
const { entropy: naynay } = await setupTest(t, { networkType }) | ||
|
||
const accountService = new EntropyAccount(naynay, endpoint) | ||
const transferService = new EntropyTransfer(entropy, endpoint) | ||
|
||
// use of charlie seed is solely to transfer funds to the naynay (fresh seed) instance. these funds will be used for the jumpstart and register call | ||
await run('transferring funds', transferService.transfer(naynay.keyring.accounts.registration.address, "1000")) |
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 the setup should be extracted (set up of a funded account).
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.
Done here #263
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.
see 🔥 ☝️
* exract "fundAccount" from tests * extraaact * tidy * Update tests/faucet.test.ts Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com> * Update tests/faucet.test.ts Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com> * fixed test --------- Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>
Related Issue(s)
Proposed Changes
Testing
Screenshots (if applicable)
Additional Context
Checklist
CHANGELOG.md
entry.github.com:entropyxyz/entropy-docs
, where necessary.