@@ -98,17 +98,16 @@ func registerMethod(ctx *cli.Context) error {
9898 if err != nil {
9999 return fmt .Errorf ("get public key: %w" , err )
100100 }
101- client , address , err := initClientWithKeyPath (ctx , chainAdminKeyPath )
101+ client , _ , err := initClientWithKeyPath (ctx , chainAdminKeyPath )
102102 if err != nil {
103103 return err
104104 }
105- appchainAdminDID := fmt .Sprintf ("%s:%s:%s" , bitxhubRootPrefix , method , address .String ())
106105 appchainMethod := fmt .Sprintf ("%s:%s:." , bitxhubRootPrefix , method )
107106 // init method registry with this admin key
108107 receipt , err := client .InvokeBVMContract (
109108 constant .AppchainMgrContractAddr .Address (),
110109 "Register" , nil ,
111- rpcx .String (appchainAdminDID ), rpcx . String ( appchainMethod ),
110+ rpcx .String (appchainMethod ),
112111 rpcx .String (didDocAddr ), rpcx .String (didDocHash ),
113112 rpcx .String (string (validatorData )), rpcx .String (consensus ), rpcx .String (typ ),
114113 rpcx .String (name ), rpcx .String (desc ), rpcx .String (version ),
0 commit comments