Skip to content

Commit

Permalink
feat(signer): add EIP712Signer.getDomain() method
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Jan 21, 2024
1 parent e148367 commit 907fee8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export class EIP712Signer {
};
return ethers.TypedDataEncoder.hash(domain, EIP712_TYPES, EIP712Signer.getSignInput(transaction));
}

async getDomain(): Promise<ethers.TypedDataDomain> {
return await this.eip712Domain;
}
}

// This class is to be used on the frontend, with metamask injection.
Expand Down

0 comments on commit 907fee8

Please sign in to comment.