Skip to content

Add unjail to staking precompile#2881

Open
codchen wants to merge 2 commits intomainfrom
tony/add-unjail-precompile
Open

Add unjail to staking precompile#2881
codchen wants to merge 2 commits intomainfrom
tony/add-unjail-precompile

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Feb 13, 2026

Describe your changes and provide context

Add unjail function to the staking precompile

Testing performed to validate your change

unit test

@github-actions
Copy link

github-actions bot commented Feb 13, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 13, 2026, 3:35 AM

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.32%. Comparing base (9b10408) to head (92056b0).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2881   +/-   ##
=======================================
  Coverage   48.32%   48.32%           
=======================================
  Files         671      671           
  Lines       50576    50580    +4     
=======================================
+ Hits        24439    24443    +4     
  Misses      23998    23998           
  Partials     2139     2139           
Flag Coverage Δ
sei-cosmos 48.14% <ø> (+<0.01%) ⬆️
sei-db 68.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

})
}

func TestUnjail(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we verify events are emitted?

should we add some more test cases? thinking:

  • calling unjail on a non-validator
  • calling unjail with improper params (not enough fees, wrong key...etc)

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.

2 participants