Skip to content

Commit

Permalink
fix v3 type fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Nov 22, 2023
1 parent e02facc commit e41ccc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 9 additions & 9 deletions rpc/types_broadcast_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ type BroadcastDeclareV2Txn struct {
}

type BroadcastDeclareTxnV3 struct {
Type TransactionType `json:"type"`
SenderAddress *felt.Felt `json:"sender_address"`
CompiledClassHash *felt.Felt `json:"compiled_class_hash"`
Version NumAsHex `json:"version"`
Signature []*felt.Felt `json:"signature"`
Nonce *felt.Felt `json:"nonce"`
ContractClass *ContractClass `json:"contract_class"`
ResourceBounds map[Resource]ResourceBounds `json:"resource_bounds"`
Tip *felt.Felt `json:"tip"`
Type TransactionType `json:"type"`
SenderAddress *felt.Felt `json:"sender_address"`
CompiledClassHash *felt.Felt `json:"compiled_class_hash"`
Version NumAsHex `json:"version"`
Signature []*felt.Felt `json:"signature"`
Nonce *felt.Felt `json:"nonce"`
ContractClass *ContractClass `json:"contract_class"`
ResourceBounds ResourceBoundsMapping `json:"resource_bounds"`
Tip *felt.Felt `json:"tip"`
// The data needed to allow the paymaster to pay for the transaction in native tokens
PayMasterData []*felt.Felt `json:"paymaster_data"`
// The data needed to deploy the account contract from which this tx will be initiated
Expand Down
2 changes: 0 additions & 2 deletions rpc/types_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ type DeployAccountTxnV3 struct {
Tip *felt.Felt `json:"tip"`
// The data needed to allow the paymaster to pay for the transaction in native tokens
PayMasterData []*felt.Felt `json:"paymaster_data"`
// The data needed to deploy the account contract from which this tx will be initiated
AccountDeploymentData []*felt.Felt `json:"account_deployment_data"`
// The storage domain of the account's nonce (an account has a nonce per DA mode)
NonceDataMode DAMode `json:"nonce_data_availability_mode"`
// The storage domain of the account's balance from which fee will be charged
Expand Down

0 comments on commit e41ccc6

Please sign in to comment.