Skip to content

Commit

Permalink
fix: update revision type (#5)
Browse files Browse the repository at this point in the history
future versions 1+ should be only string. The type should be kept as shortstring, but the value should be passed as 1 instead of ‘1’, Just for revision 1
  • Loading branch information
tabaktoni authored Jun 4, 2024
1 parent f78f0d4 commit 2d7a0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet-api/typedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface StarknetDomain extends Record<string, unknown> {
name?: string;
version?: string;
chainId?: string | number; // TODO: check resolution, diverge from SPEC and follow SNIP-12
revision?: string;
revision?: string | number; // TODO: future versions 1+ should be only string. The type should be kept as shortstring, but the value should be passed as 1 instead of ‘1’, Just for revision 1
}

/**
Expand Down

0 comments on commit 2d7a0d5

Please sign in to comment.