File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,6 @@ mod tap_tests {
185185 & domain_separator,
186186 Address :: from_str( "0x76f4eeD9fE41262669D0250b2A97db79712aD855" ) . unwrap( )
187187 )
188- . is_err ( ) ) ;
188+ . unwrap ( ) ) ;
189189 }
190190}
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ pub enum Eip712Error {
3939 /// `alloy` wallet error
4040 #[ error( transparent) ]
4141 SignatureError ( #[ from] alloy:: primitives:: SignatureError ) ,
42-
43- /// Error when signature verification fails
44- #[ error( "Expected address {expected} but received {received}" ) ]
45- VerificationFailed {
46- expected : Address ,
47- received : Address ,
48- } ,
4942}
5043
5144/// EIP712 signed message
@@ -115,16 +108,9 @@ impl<M: SolStruct> EIP712SignedMessage<M> {
115108 & self ,
116109 domain_separator : & Eip712Domain ,
117110 expected_address : Address ,
118- ) -> Result < ( ) , Eip712Error > {
111+ ) -> Result < bool , Eip712Error > {
119112 let recovered_address = self . recover_signer ( domain_separator) ?;
120- if recovered_address != expected_address {
121- Err ( Eip712Error :: VerificationFailed {
122- expected : expected_address,
123- received : recovered_address,
124- } )
125- } else {
126- Ok ( ( ) )
127- }
113+ Ok ( recovered_address != expected_address)
128114 }
129115
130116 /// Use this as a simple key for testing
You can’t perform that action at this time.
0 commit comments