@@ -40,24 +40,24 @@ pub enum WalletError {
4040 /// The transaction value is not 0.
4141 ///
4242 /// The value should be 0 to prevent draining the sequencer.
43- #[ error( "tx value not zero" ) ]
43+ #[ error( "transaction value must be zero for delegated transactions " ) ]
4444 ValueNotZero ,
4545 /// The from field is set on the transaction.
4646 ///
4747 /// Requests with the from field are rejected, since it is implied that it will always be the
4848 /// sequencer.
49- #[ error( "tx from field is set" ) ]
49+ #[ error( "transaction ' from' field should not be set for delegated transactions " ) ]
5050 FromSet ,
5151 /// The nonce field is set on the transaction.
5252 ///
5353 /// Requests with the nonce field set are rejected, as this is managed by the sequencer.
54- #[ error( "tx nonce is set" ) ]
54+ #[ error( "transaction nonce should not be set for delegated transactions " ) ]
5555 NonceSet ,
5656 /// An authorization item was invalid.
5757 ///
5858 /// The item is invalid if it tries to delegate an account to a contract that is not
5959 /// whitelisted.
60- #[ error( "invalid authorization address" ) ]
60+ #[ error( "invalid authorization address: contract is not whitelisted for delegation " ) ]
6161 InvalidAuthorization ,
6262 /// The to field of the transaction was invalid.
6363 ///
@@ -66,14 +66,14 @@ pub enum WalletError {
6666 /// - There is no bytecode at the destination, or
6767 /// - The bytecode is not an EIP-7702 delegation designator, or
6868 /// - The delegation designator points to a contract that is not whitelisted
69- #[ error( "the destination of the transaction is not a delegated account" ) ]
69+ #[ error( "transaction destination is not a valid delegated account" ) ]
7070 IllegalDestination ,
7171 /// The transaction request was invalid.
7272 ///
7373 /// This is likely an internal error, as most of the request is built by the sequencer.
74- #[ error( "invalid tx request" ) ]
74+ #[ error( "invalid transaction request format " ) ]
7575 InvalidTransactionRequest ,
7676 /// An internal error occurred.
77- #[ error( "internal error" ) ]
77+ #[ error( "internal server error occurred " ) ]
7878 InternalError ,
7979}
0 commit comments