File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ fil_actors_runtime::wasm_trampoline!(Actor);
3232pub enum Method {
3333 Constructor = METHOD_CONSTRUCTOR ,
3434 PubkeyAddress = 2 ,
35- AuthenticateMessage = 3 ,
35+ // Deprecated in v10
36+ // AuthenticateMessage = 3,
3637 AuthenticateMessageExported = frc42_dispatch:: method_hash!( "AuthenticateMessage" ) ,
3738 UniversalReceiverHook = frc42_dispatch:: method_hash!( "Receive" ) ,
3839}
@@ -121,7 +122,7 @@ impl ActorCode for Actor {
121122 let addr = Self :: pubkey_address ( rt) ?;
122123 Ok ( RawBytes :: serialize ( addr) ?)
123124 }
124- Some ( Method :: AuthenticateMessage ) | Some ( Method :: AuthenticateMessageExported ) => {
125+ Some ( Method :: AuthenticateMessageExported ) => {
125126 Self :: authenticate_message ( rt, cbor:: deserialize_params ( params) ?) ?;
126127 Ok ( RawBytes :: default ( ) )
127128 }
Original file line number Diff line number Diff line change @@ -122,14 +122,6 @@ fn authenticate_message() {
122122 ) ;
123123 rt. verify ( ) ;
124124
125- // Invalid caller of internal method number
126- rt. set_caller ( make_identity_cid ( b"1234" ) , Address :: new_id ( 1000 ) ) ;
127- expect_abort_contains_message (
128- ExitCode :: USR_FORBIDDEN ,
129- "must be built-in" ,
130- rt. call :: < AccountActor > ( Method :: AuthenticateMessage as MethodNum , & params) ,
131- ) ;
132-
133125 // Ok to call exported method number
134126 rt. expect_validate_caller_any ( ) ;
135127 rt. expect_verify_signature ( ExpectedVerifySig {
You can’t perform that action at this time.
0 commit comments