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

Add association logic in simulate #1609

Merged
merged 4 commits into from
May 1, 2024
Merged

Add association logic in simulate #1609

merged 4 commits into from
May 1, 2024

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Apr 30, 2024

Describe your changes and provide context

Testing performed to validate your change

if !associated {
seiAddr, associatedNow := b.keeper.GetSeiAddress(b.ctxProvider(LatestCtxHeight), msg.From)
if !associatedNow {
return nil, vm.BlockContext{}, nil, nil, fmt.Errorf("address %s is not associated in the latest height", msg.From.Hex())
Copy link
Contributor

Choose a reason for hiding this comment

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

the test failing suggests that if it's not associated and not associated now it should still be valid?

@codchen codchen force-pushed the associate-in-simulate branch 2 times, most recently from 44293e1 to 67c79bd Compare May 1, 2024 04:53
@codchen codchen force-pushed the associate-in-simulate branch from 67c79bd to c56b469 Compare May 1, 2024 07:22
@codecov-commenter
Copy link

codecov-commenter commented May 1, 2024

Codecov Report

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

Project coverage is 61.65%. Comparing base (954bd21) to head (03a74b1).
Report is 3 commits behind head on main.

❗ Current head 03a74b1 differs from pull request most recent head f0533f3. Consider uploading reports for the commit f0533f3 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1609      +/-   ##
==========================================
+ Coverage   61.46%   61.65%   +0.18%     
==========================================
  Files         365      365              
  Lines       26107    26135      +28     
==========================================
+ Hits        16047    16113      +66     
+ Misses       8994     8952      -42     
- Partials     1066     1070       +4     
Files Coverage Δ
x/evm/ante/preprocess.go 77.69% <33.33%> (ø)
evmrpc/simulate.go 67.91% <42.85%> (-2.93%) ⬇️

... and 2 files with indirect coverage changes

@philipsu522 philipsu522 enabled auto-merge (squash) May 1, 2024 19:12
@philipsu522 philipsu522 merged commit 9646724 into main May 1, 2024
47 checks passed
@philipsu522 philipsu522 deleted the associate-in-simulate branch May 1, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants