@@ -88,7 +88,7 @@ mod test {
8888 struct TestConfig ;
8989
9090 impl super :: Config for TestConfig {
91- type Content = & ' static str ;
91+ type Content = String ;
9292 }
9393
9494 impl crate :: system:: Config for TestConfig {
@@ -100,14 +100,14 @@ mod test {
100100 #[ test]
101101 fn basic_proof_of_existence ( ) {
102102 let mut poe = super :: Pallet :: < TestConfig > :: new ( ) ;
103- assert_eq ! ( poe. get_claim( & "Hello, world!" ) , None ) ;
104- assert_eq ! ( poe. create_claim( "alice" . to_string( ) , "Hello, world!" ) , Ok ( ( ) ) ) ;
105- assert_eq ! ( poe. get_claim( & "Hello, world!" ) , Some ( & "alice" . to_string( ) ) ) ;
103+ assert_eq ! ( poe. get_claim( & "Hello, world!" . to_string ( ) ) , None ) ;
104+ assert_eq ! ( poe. create_claim( "alice" . to_string( ) , "Hello, world!" . to_string ( ) ) , Ok ( ( ) ) ) ;
105+ assert_eq ! ( poe. get_claim( & "Hello, world!" . to_string ( ) ) , Some ( & "alice" . to_string( ) ) ) ;
106106 assert_eq ! (
107- poe. create_claim( "bob" . to_string( ) , "Hello, world!" ) ,
107+ poe. create_claim( "bob" . to_string( ) , "Hello, world!" . to_string ( ) ) ,
108108 Err ( "this content is already claimed" )
109109 ) ;
110- assert_eq ! ( poe. revoke_claim( "alice" . to_string( ) , "Hello, world!" ) , Ok ( ( ) ) ) ;
111- assert_eq ! ( poe. create_claim( "bob" . to_string( ) , "Hello, world!" ) , Ok ( ( ) ) ) ;
110+ assert_eq ! ( poe. revoke_claim( "alice" . to_string( ) , "Hello, world!" . to_string ( ) ) , Ok ( ( ) ) ) ;
111+ assert_eq ! ( poe. create_claim( "bob" . to_string( ) , "Hello, world!" . to_string ( ) ) , Ok ( ( ) ) ) ;
112112 }
113113}
0 commit comments