Skip to content

Commit 8bf9be9

Browse files
authored
update invoke v3 txn validation to require sender_address (#2308)
1 parent 91d0f8e commit 8bf9be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/transaction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ type Transaction struct {
210210
ContractAddressSalt *felt.Felt `json:"contract_address_salt,omitempty" validate:"required_if=Type DEPLOY,required_if=Type DEPLOY_ACCOUNT"`
211211
ClassHash *felt.Felt `json:"class_hash,omitempty" validate:"required_if=Type DEPLOY,required_if=Type DEPLOY_ACCOUNT"`
212212
ConstructorCallData *[]*felt.Felt `json:"constructor_calldata,omitempty" validate:"required_if=Type DEPLOY,required_if=Type DEPLOY_ACCOUNT"`
213-
SenderAddress *felt.Felt `json:"sender_address,omitempty" validate:"required_if=Type DECLARE,required_if=Type INVOKE Version 0x1"`
213+
SenderAddress *felt.Felt `json:"sender_address,omitempty" validate:"required_if=Type DECLARE,required_if=Type INVOKE Version 0x1,required_if=Type INVOKE Version 0x3"`
214214
Signature *[]*felt.Felt `json:"signature,omitempty" validate:"required"`
215215
CallData *[]*felt.Felt `json:"calldata,omitempty" validate:"required_if=Type INVOKE"`
216216
EntryPointSelector *felt.Felt `json:"entry_point_selector,omitempty" validate:"required_if=Type INVOKE Version 0x0"`

0 commit comments

Comments
 (0)