Add isClonable getter on providers (#5317)

* Add isClonable getter on providers

* Use isClonable in API constructor

* mock clonable
This commit is contained in:
Jaco
2022-11-04 10:52:51 +02:00
committed by GitHub
parent 8883d355ff
commit d9aa61c786
7 changed files with 31 additions and 1 deletions
+7
View File
@@ -97,6 +97,13 @@ export class HttpProvider implements ProviderInterface {
return this.#stats;
}
/**
* @summary `true` when this provider supports clone()
*/
public get isClonable (): boolean {
return true;
}
/**
* @summary Whether the node is connected or not.
* @return {boolean} true if connected