-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add accountToAccount
RPC
#284
Conversation
@jingyi2811: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository. |
Code Climate has analyzed commit cd9982e and detected 0 issues on this pull request. View more on Code Climate. |
✔️ Deploy Preview for jellyfish-defi ready! 🔨 Explore the source changes: ae29d49 🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/60af1284dd646c0007cefe68 😎 Browse the preview: https://deploy-preview-284--jellyfish-defi.netlify.app |
size-limit report 📦
|
Codecov Report
@@ Coverage Diff @@
## main #284 +/- ##
==========================================
+ Coverage 96.87% 96.92% +0.05%
==========================================
Files 88 89 +1
Lines 2366 2410 +44
Branches 303 309 +6
==========================================
+ Hits 2292 2336 +44
Misses 74 74
Continue to review full report at Codecov.
|
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.
minor naming issues and desc write-up
Look like one of the unit tests fails occasionally. I am now Investigating it. |
Below is my finding After adding Line 233
sometimes returns 0. (Expect to get 1) [Fail scenario] 2N3asj6NyoRGSx9Niu9qeAfJL7Ymu1R1b6G 200.00000000@DFI
The account length will be 0 [Success scenario] 2MwXSFp9jp5JtzzJ8J2GYJMRbPx6rjk5jrR 46.00000000@DETH
The account length will be 1 @canonbrother Maybe could you help me to check why this could happen. As you are the one who works on this RPC. |
Better to quote a code for context, hard to understand sometimes. |
nothing wrong |
Nevermind, this will be fixed in #295 |
Sorry, I need to refactor accountToAccount rpc test file into a separate folder in this PR. Doing it now. |
I have separated out the code. See accountToAccount.test.ts. There is minimum code refactoring in the existing account.test.ts. Added a test. There are no changes to the existing logic. |
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Add accounttoaccount rpc and assertion to prevent sending DFI in account form
Which issue(s) does this PR fixes?:
Fixes #228
Additional comments?: