Skip to content

Commit 00c58e3

Browse files
authored
fix(beta): deploy account (#880)
1 parent f590633 commit 00c58e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/channel/rpc_0_6.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)