File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -386,6 +386,10 @@ class AcpContractClient extends BaseAcpContractClient {
386386 return this . sessionKeyClient . signTypedData ( { typedData } ) ;
387387 }
388388
389+ async signMessage ( message : string ) : Promise < Hex > {
390+ return await this . sessionKeyClient . signMessage ( { message } ) ;
391+ }
392+
389393 async sendTransaction ( request : TransactionRequest ) : Promise < Hex > {
390394 return await this . sessionKeyClient . sendTransaction ( request , {
391395 paymasterAndData : "0x" ,
Original file line number Diff line number Diff line change @@ -383,6 +383,10 @@ class AcpContractClientV2 extends BaseAcpContractClient {
383383 return await this . sessionKeyClient . signTypedData ( { typedData } ) ;
384384 }
385385
386+ async signMessage ( message : string ) : Promise < Hex > {
387+ return await this . sessionKeyClient . signMessage ( { message } ) ;
388+ }
389+
386390 async sendTransaction ( request : TransactionRequest ) : Promise < Hex > {
387391 return await this . sessionKeyClient . sendTransaction ( request , {
388392 paymasterAndData : "0x" ,
Original file line number Diff line number Diff line change @@ -605,6 +605,8 @@ abstract class BaseAcpContractClient {
605605
606606 abstract signTypedData ( typedData : SignTypedDataParameters ) : Promise < Hex > ;
607607
608+ abstract signMessage ( message : string ) : Promise < Hex > ;
609+
608610 abstract sendTransaction ( request : TransactionRequest ) : Promise < Hex > ;
609611}
610612
You can’t perform that action at this time.
0 commit comments