Skip to content

Commit

Permalink
Merge pull request #160 from perun-network/hack-provider
Browse files Browse the repository at this point in the history
Add temporary hack to silence typescript compiler.
  • Loading branch information
DragonDev1906 authored Oct 22, 2024
2 parents 39aa91b + 172940d commit afa0534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crypto/ethereum/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export class EthereumSigner implements Signer<"ethereum"> {
get ethersSigner(): EthersSigner { return this.#ethersSigner; }

connect(p: Provider) { this.#ethersSigner = this.#ethersSigner.connect(p); }
// hack: if typescript makes trouble with a separate import of ethers, use this instead.
connect_any(p: any) { this.connect(p as Provider); }

constructor(ethersSigner: EthersSigner) {
this.#ethersSigner = ethersSigner;
Expand Down

0 comments on commit afa0534

Please sign in to comment.