File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -472,12 +472,15 @@ mod test {
472
472
let expected_response =
473
473
"0x625fd46f82c4cfd135ea6a8534e85dbf50beb157046dce59d2e97aacdf4e38381d1513c0e6f002b2f05c05458038b187754ff38cc0658dfc9ba854cccfb6e13e1b" ;
474
474
let message = "2bdeafae53940669daa6f519373f686c" ;
475
- let response = eth_adapter. sign ( message) . expect ( "failed to sign message" ) ;
476
- assert_eq ! ( expected_response, response , "invalid signature" ) ;
475
+ let signature = eth_adapter. sign ( message) . expect ( "failed to sign message" ) ;
476
+ assert_eq ! ( expected_response, signature , "invalid signature" ) ;
477
477
478
478
// Verify
479
+ <<<<<<< HEAD
479
480
let signature =
480
481
"0x9e07f12958ce7c5eb1362eb9461e4745dd9d74a42b921391393caea700bfbd6e1ad876a7d8f9202ef1fe6110dbfe87840c5676ca5c4fda9f3330694a1ac2a1fc1b ";
482
+ =======
483
+ >>>>>>> 89 abe43... fix: date check & ethereum sign
481
484
let verify = eth_adapter
482
485
. verify(
483
486
& ValidatorId :: try_from( "2892f6C41E0718eeeDd49D98D648C789668cA67d" )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub trait ChannelValidator {
24
24
) ) ;
25
25
}
26
26
27
- if channel. valid_until > ( Utc :: now ( ) + Duration :: days ( 366 ) ) {
27
+ if channel. valid_until > ( Utc :: now ( ) + Duration :: days ( 365 ) ) {
28
28
return Err ( ChannelError :: InvalidValidUntil (
29
29
"channel.validUntil should not be greater than one year" . to_string ( ) ,
30
30
) ) ;
You can’t perform that action at this time.
0 commit comments