You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: InvalidTransactionNonce has data and new errors (#3003)
* feat: rpcv9 InvalidTransactionNonce error has data field (#2944)
* InvalidTransactionNonce error returns data
* fix linter
* New Gw errors
* Test case for errors
* add test for InvalidTransactionNonce as ValidationFailure
* gatewayError.CompilationFailed returns data starting from rpcv8
* update test data
ErrContractClassSizeTooLarge=&jsonrpc.Error{Code: 57, Message: "Contract class size is too large"}
65
-
ErrNonAccount=&jsonrpc.Error{Code: 58, Message: "Sender address is not an account contract"}
66
-
ErrDuplicateTx=&jsonrpc.Error{Code: 59, Message: "A transaction with the same hash already exists in the mempool"}
67
-
ErrCompiledClassHashMismatch=&jsonrpc.Error{Code: 60, Message: "the compiled class hash did not match the one supplied in the transaction"} //nolint:lll
68
-
ErrUnsupportedTxVersion=&jsonrpc.Error{Code: 61, Message: "the transaction version is not supported"}
69
-
ErrUnsupportedContractClassVersion=&jsonrpc.Error{Code: 62, Message: "the contract class version is not supported"}
ErrContractClassSizeTooLarge=&jsonrpc.Error{Code: 57, Message: "Contract class size is too large"}
65
+
ErrNonAccount=&jsonrpc.Error{Code: 58, Message: "Sender address is not an account contract"}
66
+
ErrDuplicateTx=&jsonrpc.Error{Code: 59, Message: "A transaction with the same hash already exists in the mempool"}
67
+
ErrCompiledClassHashMismatch=&jsonrpc.Error{Code: 60, Message: "the compiled class hash did not match the one supplied in the transaction"} //nolint:lll
68
+
ErrUnsupportedTxVersion=&jsonrpc.Error{Code: 61, Message: "the transaction version is not supported"}
69
+
ErrUnsupportedContractClassVersion=&jsonrpc.Error{Code: 62, Message: "the contract class version is not supported"}
0 commit comments