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

Upgrade deprecated function calls to use replacements. #616

Open
LuisPH3 opened this issue Jul 16, 2024 · 0 comments
Open

Upgrade deprecated function calls to use replacements. #616

LuisPH3 opened this issue Jul 16, 2024 · 0 comments
Milestone

Comments

@LuisPH3
Copy link
Contributor

LuisPH3 commented Jul 16, 2024

Staticcheck reports use of deprecated functions.

install go install honnef.co/go/tools/cmd/staticcheck@latest
call staticcheck ./go/...

go/ct/utils/adapter_test.go:166:26: ctxt.GetCommittedStorage is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/ct/utils/adapter_test.go:179:18: ctxt.GetCommittedStorage is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/ct/utils/adapter_test.go:188:15: ctxt.IsSlotInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/ct/utils/adapter_test.go:200:15: ctxt.IsSlotInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/ct/utils/adapter_test.go:314:19: ctxt.IsAddressInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/ct/utils/adapter_test.go:324:18: ctxt.IsAddressInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/geth/geth.go:303:21: s.context.GetCommittedStorage is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/geth/geth.go:332:9: s.context.HasSelfDestructed is deprecated: should not be needed  (SA1019)
go/interpreter/geth/geth.go:364:9: s.context.IsAddressInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/geth/geth.go:368:9: s.context.IsSlotInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:315:14: c.context.GetCommittedStorage is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:363:33: c.context.IsSlotInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:377:14: c.context.GetCommittedStorage is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:407:7: c.context.IsAddressInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:422:16: c.context.IsAddressInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:446:6: c.context.HasSelfDestructed is deprecated: should not be needed  (SA1019)
go/interpreter/lfvm/gas.go:457:6: c.context.IsAddressInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
go/interpreter/lfvm/gas.go:468:7: c.context.HasSelfDestructed is deprecated: should not be needed  (SA1019)
go/interpreter/lfvm/instructions.go:273:24: c.context.IsSlotInAccessList is deprecated: should not be needed when using result of SetStorage(..)  (SA1019)
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

No branches or pull requests

1 participant