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

Update show.go #226

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

antojoseph
Copy link

fix divide by zero errors like the one below

panic: division of zero by zero or infinity by infinity

Fixes # .

### What Changed?
Added a check to ensure we don't divide by 0, tested and verified with no panics after this patch.

fix divide by zero errors like the one below
```Oct 14 14:14:50.283 DBG allocations/show.go:87 Allocatable magnitude for strategy 0x..... : 0
panic: division of zero by zero or infinity by infinity```
@shrimalmadhur shrimalmadhur merged commit 887d9d7 into madhur/slashing-allocations Oct 14, 2024
0 of 6 checks passed
@shrimalmadhur shrimalmadhur deleted the antojoseph-patch-1 branch October 14, 2024 18:56
shrimalmadhur added a commit that referenced this pull request Oct 19, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM
shrimalmadhur added a commit that referenced this pull request Oct 19, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM
shrimalmadhur added a commit that referenced this pull request Nov 20, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk
shrimalmadhur added a commit that referenced this pull request Dec 10, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
shrimalmadhur added a commit that referenced this pull request Dec 10, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
shrimalmadhur added a commit that referenced this pull request Dec 16, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
shrimalmadhur added a commit that referenced this pull request Dec 19, 2024
feat: add working cmds

remove unrelated changes

remove unrelated changes

unsigned tx

add some tests

comment

add readme

more allocations

basic show command

update with latest contracts

add more code

add more code

working slashing

%age and comments

update with latest contracts

Update show.go (#226)

updated to latest AM

updated to latest AM

updated to latest AM

update eigensdk

update with latest contracts

update with latest contracts

update allocation delay cmd

update with latest contracts

added registered/deregistered operator sets

only show deregister if there's any allocation left

UAM Command Schema with CanCall Implementation (#244)

Co-authored-by: Brandon Chatham <[email protected]>

fix: tests and fmt (#249)

Implementing `list` and `list_permissions` Commands. (#248)

Co-authored-by: Brandon Chatham <[email protected]>
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