Skip to content

Allow changing chain icon#1359

Merged
Jamchello merged 12 commits intodevelopfrom
allow-changing-chain-icon
Jan 19, 2023
Merged

Allow changing chain icon#1359
Jamchello merged 12 commits intodevelopfrom
allow-changing-chain-icon

Conversation

@Jamchello
Copy link
Copy Markdown
Contributor

No description provided.

@goosewobbler goosewobbler added the enhancement New feature or request label Jan 19, 2023
@goosewobbler
Copy link
Copy Markdown
Contributor

Looks nice, need to fix the Native Currency Name behaviour in this form - when the field is empty it uses the placeholder / default text as the field value

})
})

it('should not save network metadata inside the main network state', () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this test, this isn't verifying any functionality only checking for static code correctness

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if anything maybe we can (or do) have separate tests that test updating the network somehow and those would fail if this wasn't right

@@ -87,7 +87,8 @@ describe('rendering', () => {
name: 'Polygon',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add tests to this file for some of the new fields?

@goosewobbler
Copy link
Copy Markdown
Contributor

Looks nice, need to fix the Native Currency Name behaviour in this form - when the field is empty it uses the placeholder / default text as the field value

Dealing with this in a separate PR

mholtzman
mholtzman previously approved these changes Jan 19, 2023
@Jamchello Jamchello merged commit da4251a into develop Jan 19, 2023
@mholtzman mholtzman deleted the allow-changing-chain-icon branch January 19, 2023 17:24
wakamex pushed a commit to wakamex/framed that referenced this pull request Mar 2, 2026
* started to add default states & stubs for later

* able to configure chain icon & native currency name

* validate that chain icon is valid image URL if added

* merge into develop

* add currencyIcon & networkIcon fields

* clean up assignment with destructuring

* fix test

* one more test fix

* fix defaults

* address comments

Co-authored-by: Matt Holtzman <matt.holtzman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants