Skip to content

Conversation

@csillag
Copy link
Contributor

@csillag csillag commented Jun 4, 2025

This is a follow-up to #2002, where @lukaw3d commented:

I somewhat prefer string literals 🤷

So, this PR increases the usage of string literals, instead of Layer and Network constants.

So,

  • Network.mainnet => 'mainnet'
  • Layer.sapphire => 'sapphire'

etc.

@github-actions
Copy link

github-actions bot commented Jun 4, 2025

Deployed to Cloudflare Pages

Latest commit: 51ef949b9ad11174b5f985c50db0274f33a03bd2
Status:✅ Deploy successful!
Preview URL: https://4b4b912f.oasis-explorer.pages.dev
Alias: https://pr-2016.oasis-explorer.pages.dev

@csillag csillag force-pushed the csillag/use-string-literals branch from 6dab615 to 6d45871 Compare June 4, 2025 22:09
@csillag csillag marked this pull request as ready for review June 4, 2025 22:09
@csillag csillag self-assigned this Jun 4, 2025
@lukaw3d lukaw3d changed the title Prefer string literals instead of constants Prefer string literals instead of enum constants Jun 4, 2025
@csillag csillag force-pushed the csillag/use-string-literals branch from 6d45871 to b220d7f Compare June 5, 2025 12:35
@tjanez
Copy link
Member

tjanez commented Jun 11, 2025

@buberdds, is this approach of using string literals also good with you?

@csillag csillag force-pushed the csillag/use-string-literals branch from b220d7f to 204f42c Compare June 11, 2025 11:00
@csillag csillag force-pushed the csillag/use-string-literals branch from 204f42c to 51ef949 Compare June 11, 2025 11:09
@csillag
Copy link
Contributor Author

csillag commented Jun 11, 2025

@buberdds, is this approach of using string literals also good with you?

@buberdds 's input (via other channels):

I don't care really [...] I fine with merging

So, merging it

@csillag csillag merged commit 60abc6d into master Jun 11, 2025
9 checks passed
@csillag csillag deleted the csillag/use-string-literals branch June 11, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants