@atomiqlabs/chain-evm
Version:
EVM specific base implementation
24 lines (16 loc) • 460 B
text/typescript
import {AbstractSigner} from "@atomiqlabs/base";
import {Signer} from "ethers";
export class EVMSigner implements AbstractSigner {
account: Signer;
public readonly address: string;
constructor(account: Signer, address: string) {
this.account = account;
this.address = address;
}
getNonce(): Promise<number> {
return Promise.resolve(null);
}
getAddress(): string {
return this.address;
}
}