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 23, 2024
1 parent 490e0ea commit 807c314
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 @@ -79,6 +79,10 @@ export class EIP712Signer {
};
return 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 807c314

Please sign in to comment.