Skip to content

Commit

Permalink
Adjust ErrInsufficientMaxFee response message to latest starknet spec
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechos committed Jul 27, 2023
1 parent 6e5984f commit 5a02f46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rpc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ var (
ErrClassAlreadyDeclared = &jsonrpc.Error{Code: 51, Message: "Class already declared"}
ErrInternal = &jsonrpc.Error{Code: jsonrpc.InternalError, Message: "Internal error"}
ErrInvalidTransactionNonce = &jsonrpc.Error{Code: 52, Message: "Invalid transaction nonce"}
ErrInsufficientMaxFee = &jsonrpc.Error{Code: 53, Message: "Max fee is smaller than the validation's actual fee"}
ErrInsufficientMaxFee = &jsonrpc.Error{
Code: 53,
Message: "Max fee is smaller than the minimal transaction cost (validation plus fee transfer)"

Check failure on line 43 in rpc/handlers.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected newline in composite literal; possibly missing comma or } (typecheck)

Check failure on line 43 in rpc/handlers.go

View workflow job for this annotation

GitHub Actions / lint

missing ',' before newline in composite literal (typecheck)

Check failure on line 43 in rpc/handlers.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected newline in composite literal; possibly missing comma or }) (typecheck)

Check failure on line 43 in rpc/handlers.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected newline in composite literal; possibly missing comma or }) (typecheck)

Check failure on line 43 in rpc/handlers.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected newline in composite literal; possibly missing comma or }) (typecheck)

Check failure on line 43 in rpc/handlers.go

View workflow job for this annotation

GitHub Actions / run_smoke_tests

syntax error: unexpected newline in composite literal; possibly missing comma or }
}
ErrInsufficientAccountBalance = &jsonrpc.Error{Code: 54, Message: "Account balance is smaller than the transaction's max_fee"}
ErrValidationFailure = &jsonrpc.Error{Code: 55, Message: "Account validation failed"}
ErrCompilationFailed = &jsonrpc.Error{Code: 56, Message: "Compilation failed"}
Expand Down

0 comments on commit 5a02f46

Please sign in to comment.