Skip to content

Commit

Permalink
feat: 🎸 Added optional versionOverride paramenter
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Nov 10, 2022
1 parent c361efb commit d63ae36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ export const createPermitSignature = async (
spender: string,
value: BigNumber,
deadline: number,
salt?: string
salt?: string,
versionOverride?: string
): Promise<Signature> => {
const nonce = await contract.nonces(owner);
const name = await contract.name();
const version = '1';
const version = versionOverride || '1';
const chainId = await signer.getChainId();

return ethers.utils.splitSignature(
Expand Down

0 comments on commit d63ae36

Please sign in to comment.