Skip to content

Commit

Permalink
fix(beta): deploy account (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 authored Dec 7, 2023
1 parent f590633 commit 00c58e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/channel/rpc_0_6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,15 @@ export class RpcChannel {
resource_bounds: invocation.resourceBounds,
tip: toHex(invocation.tip),
paymaster_data: invocation.paymasterData.map((it) => toHex(it)),
account_deployment_data: invocation.accountDeploymentData.map((it) => toHex(it)),
nonce_data_availability_mode: invocation.nonceDataAvailabilityMode,
fee_data_availability_mode: invocation.feeDataAvailabilityMode,

// dont add account_deployment_data if invocation.type === TransactionType.DEPLOY_ACCOUNT
...(invocation.type === TransactionType.DEPLOY_ACCOUNT
? {}
: {
account_deployment_data: invocation.accountDeploymentData.map((it) => toHex(it)),
}),
};
}

Expand Down

0 comments on commit 00c58e3

Please sign in to comment.