Skip to content

Commit

Permalink
feat: do not require id to be number (#79)
Browse files Browse the repository at this point in the history
We send it as null in clients.
  • Loading branch information
Sekhmet authored Feb 22, 2024
1 parent 786715a commit b9024b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/mana/src/eth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { rpcError } from '../utils';
import { getEthereumWallet, DEFAULT_INDEX, SPACES_INDICIES } from './dependencies';

const jsonRpcRequestSchema = z.object({
id: z.number(),
id: z.any(),
method: z.enum(['send', 'execute', 'executeQueuedProposal']),
params: z.any()
});
Expand Down
2 changes: 1 addition & 1 deletion apps/mana/src/stark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { NETWORKS } from './networks';
import { DEFAULT_INDEX, SPACES_INDICIES, getStarknetAccount } from './dependencies';

const jsonRpcRequestSchema = z.object({
id: z.number(),
id: z.any(),
method: z.enum(['send', 'registerTransaction', 'registerProposal']),
params: z.any()
});
Expand Down

0 comments on commit b9024b5

Please sign in to comment.