Allow unset external signer (#5649)

This commit is contained in:
polymath-eric
2023-05-20 10:46:06 +03:00
committed by GitHub
parent 0c6a4754f0
commit a561253de9
+1 -1
View File
@@ -58,7 +58,7 @@ export abstract class ApiBase<ApiType extends ApiTypes> extends Getters<ApiType>
/**
* @description Set an external signer which will be used to sign extrinsic when account passed in is not KeyringPair
*/
public setSigner (signer: Signer): void {
public setSigner (signer: Signer | undefined): void {
this._rx.signer = signer;
}