cairo-contracts
cairo-contracts copied to clipboard
Account does not allow execution simulation in v0.4.0b
With Starknet v0.10.0, execution simulation has been introduced (/feeder_gateway/simulate_transaction of the sequencer API). It is used by starknet invoke --estimate_fee and starknet invoke --simulate of Starknet CLI.
This is how starknet invoke is implemented: code.
The linked function calls this one, which clearly sets version to QUERY_VERSION since query=True:
Should this line of account.cairo be changed to allow both TRANSACTION_VERSION = 1 and QUERY_VERSION = QUERY_VERSION_BASE + 1?