Conversation
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.
Thanks so much for checking in on this. I added some comments- happy to hear other suggestions too.
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.
Thanks for making changes to the points from before.
I have queried a few elements to discuss further.
Also, you may need to add a couple more tests. Coverage has dropped.
@@ -15,6 +17,7 @@ import { ModalConnectivityErrorComponent } from 'src/app/modals/modal-connectivi | |||
|
|||
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic'; | |||
import { CKEditorComponent } from '@ckeditor/ckeditor5-angular'; | |||
import { getCurrencySymbol } from '@angular/common'; |
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.
Where is this used?
"type": 4, | ||
"body": { | ||
"balance": 2183846200000000000, | ||
"unit": "wei" |
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.
Can you check the unit? The API should return EDG for Edgeware
* Returns the currency on basis of the selected protocol in Mailchain | ||
* @param protocol the cureent protocol | ||
*/ | ||
getCurrencyForProtocol(protocol: string) { |
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.
Is it better for the API to return the currency based on the protocol and network? (e.g. wei
for current Ethereum supported networks, edg
for Edgeware-mainnnet, algo
for Algorand)
This reduces the amount of logic required in the front end, although some is still require for UX, for example a wei
to eth
conversion for Ethereum.
"type": 4, | ||
"body": { | ||
"balance": 218, | ||
"unit": "ALGO" |
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.
Can you also check the case of the server response?
<br /> | ||
<!-- ./Show Balance Label --> | ||
<!-- Show Fees Label --> | ||
<!-- <div class="form-group row mb-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.
Please can you remove this until it's implemented?
Thanks for sharing , I am working on the changes . |
Could you please review the code for Balance Functionality from the FE perspective?