Skip to content

Commit

Permalink
feat: simulate skip validate by default, spec deploy acc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Dec 7, 2023
1 parent b95c462 commit 1b3e7ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/channel/rpc_0_6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ export class RpcChannel {
invocations: AccountInvocations,
{
blockIdentifier = this.blockIdentifier,
skipValidate = false,
skipValidate = true,
skipFeeCharge = true,
}: getSimulateTransactionOptions = {}
) {
const block_id = new Block(blockIdentifier).identifier;
const simulationFlags = [];
const simulationFlags: any = [];
if (skipValidate) simulationFlags.push(RPC.ESimulationFlag.SKIP_VALIDATE);
if (skipFeeCharge) simulationFlags.push(RPC.ESimulationFlag.SKIP_FEE_CHARGE);

Expand Down
1 change: 0 additions & 1 deletion src/types/api/rpcspec_0_6/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ export type DEPLOY_ACCOUNT_TXN_V3 = {
resource_bounds: RESOURCE_BOUNDS_MAPPING;
tip: u64;
paymaster_data: FELT[];
account_deployment_data: FELT[];
nonce_data_availability_mode: DA_MODE;
fee_data_availability_mode: DA_MODE;
};
Expand Down

0 comments on commit 1b3e7ae

Please sign in to comment.