Skip to content
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

Bug-fixes SetState chain simulator #5993

Merged
merged 4 commits into from
Feb 27, 2024
Merged

Bug-fixes SetState chain simulator #5993

merged 4 commits into from
Feb 27, 2024

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Feb 23, 2024

Reasoning behind the pull request

  • Fixed the problem with the SetState endpoint: instead of setting the provided balance the provided value was added to the balance
  • Added extra checks in case of empty fields

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 42 lines in your changes are missing coverage. Please review.

Project coverage is 80.23%. Comparing base (d80e474) to head (81d81e9).

Files Patch % Lines
...hainSimulator/components/testOnlyProcessingNode.go 0.00% 42 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           rc/v1.7.0    #5993      +/-   ##
=============================================
- Coverage      80.25%   80.23%   -0.02%     
=============================================
  Files            734      734              
  Lines          96383    96398      +15     
=============================================
- Hits           77350    77343       -7     
- Misses         13677    13699      +22     
  Partials        5356     5356              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@miiu96 miiu96 self-assigned this Feb 23, 2024
@@ -3,7 +3,7 @@ package dtos
// AddressState will hold the address state
type AddressState struct {
Address string `json:"address"`
Nonce uint64 `json:"nonce,omitempty"`
Nonce *uint64 `json:"nonce,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

why pointer here?

@miiu96 miiu96 merged commit 3f716b1 into rc/v1.7.0 Feb 27, 2024
6 of 8 checks passed
@miiu96 miiu96 deleted the bug-fixes-set-state branch February 27, 2024 09:40
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