1111 // ErrTxDecode is returned if we cannot parse a transaction
1212 ErrTxDecode = errorsmod .Register (RootCodespace , 2 , "tx parse error" )
1313
14- // ErrInvalidSequence is used the sequence number (nonce) is incorrect
15- // for the signature
14+ // ErrInvalidSequence is returned when the sequence number (nonce) is incorrect for the signature.
1615 ErrInvalidSequence = errorsmod .Register (RootCodespace , 3 , "invalid sequence" )
1716
1817 // ErrUnauthorized is used whenever a request without sufficient
@@ -22,34 +21,34 @@ var (
2221 // ErrInsufficientFunds is used when the account cannot pay requested amount.
2322 ErrInsufficientFunds = errorsmod .Register (RootCodespace , 5 , "insufficient funds" )
2423
25- // ErrUnknownRequest to doc
24+ // ErrUnknownRequest is returned for unrecognized requests.
2625 ErrUnknownRequest = errorsmod .Register (RootCodespace , 6 , "unknown request" )
2726
28- // ErrInvalidAddress to doc
27+ // ErrInvalidAddress is returned when an address is invalid.
2928 ErrInvalidAddress = errorsmod .Register (RootCodespace , 7 , "invalid address" )
3029
31- // ErrInvalidPubKey to doc
30+ // ErrInvalidPubKey is returned when a public key is invalid.
3231 ErrInvalidPubKey = errorsmod .Register (RootCodespace , 8 , "invalid pubkey" )
3332
34- // ErrUnknownAddress to doc
33+ // ErrUnknownAddress is returned when an address is not found.
3534 ErrUnknownAddress = errorsmod .Register (RootCodespace , 9 , "unknown address" )
3635
37- // ErrInvalidCoins to doc
36+ // ErrInvalidCoins is returned when coins are malformed or invalid.
3837 ErrInvalidCoins = errorsmod .Register (RootCodespace , 10 , "invalid coins" )
3938
40- // ErrOutOfGas to doc
39+ // ErrOutOfGas is returned when transaction processing runs out of gas.
4140 ErrOutOfGas = errorsmod .Register (RootCodespace , 11 , "out of gas" )
4241
43- // ErrMemoTooLarge to doc
42+ // ErrMemoTooLarge is returned when a memo exceeds the allowed size.
4443 ErrMemoTooLarge = errorsmod .Register (RootCodespace , 12 , "memo too large" )
4544
46- // ErrInsufficientFee to doc
45+ // ErrInsufficientFee is returned when the provided fee is too low.
4746 ErrInsufficientFee = errorsmod .Register (RootCodespace , 13 , "insufficient fee" )
4847
49- // ErrTooManySignatures to doc
48+ // ErrTooManySignatures is returned when a tx contains too many signatures.
5049 ErrTooManySignatures = errorsmod .Register (RootCodespace , 14 , "maximum number of signatures exceeded" )
5150
52- // ErrNoSignatures to doc
51+ // ErrNoSignatures is returned when no signatures are provided.
5352 ErrNoSignatures = errorsmod .Register (RootCodespace , 15 , "no signatures supplied" )
5453
5554 // ErrJSONMarshal defines an ABCI typed JSON marshaling error
9392 // ErrInvalidChainID defines an error when the chain-id is invalid.
9493 ErrInvalidChainID = errorsmod .Register (RootCodespace , 28 , "invalid chain-id" )
9594
96- // ErrInvalidType defines an error an invalid type.
95+ // ErrInvalidType defines an error for an invalid type.
9796 ErrInvalidType = errorsmod .Register (RootCodespace , 29 , "invalid type" )
9897
9998 // ErrTxTimeoutHeight defines an error for when a tx is rejected out due to an
@@ -128,9 +127,9 @@ var (
128127 // ErrNotFound defines an error when requested entity doesn't exist in the state.
129128 ErrNotFound = errorsmod .Register (RootCodespace , 38 , "not found" )
130129
131- // ErrIO should be used to wrap internal errors caused by external operation.
132- // Examples: not DB domain error, file writing etc.. .
133- ErrIO = errorsmod .Register (RootCodespace , 39 , "Internal IO error" )
130+ // ErrIO wraps internal errors caused by external operations (e.g., I/O, file writing,
131+ // non- DB domain errors) .
132+ ErrIO = errorsmod .Register (RootCodespace , 39 , "internal IO error" )
134133
135134 // ErrAppConfig defines an error occurred if application configuration is
136135 // misconfigured.
@@ -140,7 +139,7 @@ var (
140139 // supplied.
141140 ErrInvalidGasLimit = errorsmod .Register (RootCodespace , 41 , "invalid gas limit" )
142141
143- // ErrPanic should only be set when we recovering from a panic
142+ // ErrPanic should only be set when recovering from a panic.
144143 ErrPanic = errorsmod .ErrPanic
145144
146145 // ErrTxTimeout defines an error for when a tx is rejected out due to an
0 commit comments