Skip to content

Conversation

@nethoxa
Copy link
Contributor

@nethoxa nethoxa commented Sep 28, 2025

PR description

Fixed Issue(s)

  • This PR fixes the function toHumanReadableStringWithPadding that was making some tests to fail

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests
  • hive tests: Engine or other RPCs modified?

@macfarla
Copy link
Contributor

@nethoxa thanks for the PR. Is this the only test that is failing when run locally for you?
You'll also need to fix DCO - need to add signoff to your commits. You should be able to follow the instructions here https://github.com/hyperledger/besu/pull/9231/checks?check_run_id=51430761463

@macfarla macfarla marked this pull request as draft September 28, 2025 22:14
@macfarla
Copy link
Contributor

thinking about this further - would it make more sense to update the test instead, so that any log messages appear in user's locale formatting. Change the test to also use String.format

Signed-off-by: nethoxa <nethoxa@proton.me>
Signed-off-by: nethoxa <nethoxa@proton.me>
Signed-off-by: nethoxa <nethoxa@proton.me>
@nethoxa
Copy link
Contributor Author

nethoxa commented Sep 29, 2025

like that @macfarla?

@macfarla macfarla marked this pull request as ready for review September 30, 2025 21:58
@macfarla macfarla changed the title fix wei formatting fix test for wei formatting Oct 1, 2025
@macfarla macfarla enabled auto-merge (squash) October 1, 2025 01:00
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@macfarla macfarla merged commit 40004b3 into hyperledger:main Oct 1, 2025
55 of 61 checks passed
AliZDev-v0 pushed a commit to AliZDev-v0/besu that referenced this pull request Oct 5, 2025
* fix wei formatting

Signed-off-by: nethoxa <nethoxa@proton.me>

* apply changes to wei fmt

Signed-off-by: nethoxa <nethoxa@proton.me>

* fix toHumanReadablePaddedString

Signed-off-by: nethoxa <nethoxa@proton.me>

---------

Signed-off-by: nethoxa <nethoxa@proton.me>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Ali Zhagparov <alijakparov.kz@gmail.com>
jflo pushed a commit to jflo/besu that referenced this pull request Oct 13, 2025
* fix wei formatting

Signed-off-by: nethoxa <nethoxa@proton.me>

* apply changes to wei fmt

Signed-off-by: nethoxa <nethoxa@proton.me>

* fix toHumanReadablePaddedString

Signed-off-by: nethoxa <nethoxa@proton.me>

---------

Signed-off-by: nethoxa <nethoxa@proton.me>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: jflo <justin+github@florentine.us>
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.

2 participants