File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -605,9 +605,15 @@ export class RpcChannel {
605605 resource_bounds : invocation . resourceBounds ,
606606 tip : toHex ( invocation . tip ) ,
607607 paymaster_data : invocation . paymasterData . map ( ( it ) => toHex ( it ) ) ,
608- account_deployment_data : invocation . accountDeploymentData . map ( ( it ) => toHex ( it ) ) ,
609608 nonce_data_availability_mode : invocation . nonceDataAvailabilityMode ,
610609 fee_data_availability_mode : invocation . feeDataAvailabilityMode ,
610+
611+ // dont add account_deployment_data if invocation.type === TransactionType.DEPLOY_ACCOUNT
612+ ...( invocation . type === TransactionType . DEPLOY_ACCOUNT
613+ ? { }
614+ : {
615+ account_deployment_data : invocation . accountDeploymentData . map ( ( it ) => toHex ( it ) ) ,
616+ } ) ,
611617 } ;
612618 }
613619
You can’t perform that action at this time.
0 commit comments