cairo-contracts icon indicating copy to clipboard operation
cairo-contracts copied to clipboard

Account does not allow execution simulation in v0.4.0b

Open FabijanC opened this issue 3 years ago • 0 comments

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?

FabijanC avatar Sep 14 '22 09:09 FabijanC