software-mansion / starknet.swift

Starknet SDK for Swift language
MIT License
24 stars 15 forks source link

Disallow batching for some methods #201

Open franciszekjob opened 4 months ago

franciszekjob commented 4 months ago

Feature Request

Batching some methods needs to be disallowed. As example, someone can try to batch two executeV1 requests, and they will both have the same nonce.

We should think of the ways to prevent users from shooting themselves in the foot by either:

Reference: https://github.com/software-mansion/starknet.swift/pull/187#discussion_r1624265579