From ff530574f78090f97b5d2b4ce6f4ca5e97d49cdf Mon Sep 17 00:00:00 2001 From: Carmen Cabrera Date: Wed, 25 Oct 2023 22:55:45 -0400 Subject: [PATCH] fix properties of broadcasted declare transactions --- rpc/types_broadcast_transaction.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/rpc/types_broadcast_transaction.go b/rpc/types_broadcast_transaction.go index 1b6d0260..8a9c4456 100644 --- a/rpc/types_broadcast_transaction.go +++ b/rpc/types_broadcast_transaction.go @@ -23,23 +23,23 @@ type BroadcastInvokev1Txn struct { type BroadcastDeclareV1Txn struct { Type TransactionType `json:"type"` // SenderAddress the address of the account contract sending the declaration transaction - SenderAddress *felt.Felt `json:"sender_address"` - MaxFee *felt.Felt `json:"max_fee"` - Version TransactionVersion `json:"version"` - Signature []*felt.Felt `json:"signature"` - Nonce *felt.Felt `json:"nonce"` - DeprecatedContractClass `json:"contract_class"` + SenderAddress *felt.Felt `json:"sender_address"` + MaxFee *felt.Felt `json:"max_fee"` + Version NumAsHex `json:"version"` + Signature []*felt.Felt `json:"signature"` + Nonce *felt.Felt `json:"nonce"` + ContractClass DeprecatedContractClass `json:"contract_class"` } type BroadcastDeclareV2Txn struct { Type TransactionType `json:"type"` // SenderAddress the address of the account contract sending the declaration transaction - SenderAddress *felt.Felt `json:"sender_address"` - CompiledClassHash *felt.Felt `json:"compiled_class_hash"` - MaxFee *felt.Felt `json:"max_fee"` - Version TransactionVersion `json:"version"` - Signature []*felt.Felt `json:"signature"` - Nonce *felt.Felt `json:"nonce"` - ContractClass `json:"contract_class"` + SenderAddress *felt.Felt `json:"sender_address"` + CompiledClassHash *felt.Felt `json:"compiled_class_hash"` + MaxFee *felt.Felt `json:"max_fee"` + Version NumAsHex `json:"version"` + Signature []*felt.Felt `json:"signature"` + Nonce *felt.Felt `json:"nonce"` + ContractClass ContractClass `json:"contract_class"` } type BroadcastDeployAccountTxn struct {