Skip to content

morph: adopt neorpc.GASLimitExceededException#3868

Open
AnnaShaleva wants to merge 2 commits intomasterfrom
fetch-gas-limit-exceeded
Open

morph: adopt neorpc.GASLimitExceededException#3868
AnnaShaleva wants to merge 2 commits intomasterfrom
fetch-gas-limit-exceeded

Conversation

@AnnaShaleva
Copy link
Member

Port nspcc-dev/neo-go#4189. Ref. #3839.

Blocked by NeoGo release. All NeoFS nodes upgrade should happen before the compatibility code removal.

@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 26.03%. Comparing base (15d4c4a) to head (57cccc3).

Files with missing lines Patch % Lines
pkg/morph/client/static.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3868      +/-   ##
==========================================
+ Coverage   26.02%   26.03%   +0.01%     
==========================================
  Files         675      675              
  Lines       43760    43751       -9     
==========================================
+ Hits        11388    11391       +3     
+ Misses      31315    31303      -12     
  Partials     1057     1057              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roman-khimov roman-khimov added the blocked Can't be done because of something label Mar 10, 2026
@AnnaShaleva AnnaShaleva force-pushed the fetch-gas-limit-exceeded branch from 81d2ac1 to f66a6fc Compare March 13, 2026 12:45
err := invokeFunc()
if err != nil {
if errors.Is(err, neorpc.ErrMempoolCapReached) || insufficientAmountOfGasErr(err) {
if errors.Is(err, neorpc.ErrMempoolCapReached) || errors.Is(&neorpc.FaultException{Message: err.Error()}, neorpc.GASLimitExceededException) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@roman-khimov, ref. nspcc-dev/neo-go#4189 (comment), just a note: originally I added neorpc.FaultException constructor to avoid such things on the client side.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva force-pushed the fetch-gas-limit-exceeded branch from f66a6fc to 57cccc3 Compare March 13, 2026 12:49
@AnnaShaleva AnnaShaleva added dependencies Dealing with project dependencies and removed blocked Can't be done because of something labels Mar 13, 2026
@AnnaShaleva AnnaShaleva marked this pull request as ready for review March 13, 2026 13:18
@AnnaShaleva AnnaShaleva changed the title morph: adopt vm.GASLimitExceeded error morph: adopt neorpc.GASLimitExceededException Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dealing with project dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants