Skip to content

Commit

Permalink
update l1 handler version (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes authored Feb 12, 2024
1 parent 5d8c610 commit 7f8e71f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpc/types_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,18 @@ type InvokeTxnV3 struct {
type L1HandlerTxn struct {
Type TransactionType `json:"type,omitempty"`
// Version of the transaction scheme
Version *felt.Felt `json:"version"`
Version L1HandlerTxnVersion `json:"version"`
// Nonce
Nonce string `json:"nonce,omitempty"`
FunctionCall
}

type L1HandlerTxnVersion string

const (
L1HandlerTxnVersionV0 L1HandlerTxnVersion = "0x0"
)

type DeclareTxnV0 struct {
Type TransactionType `json:"type"`
// SenderAddress the address of the account contract sending the declaration transaction
Expand Down

0 comments on commit 7f8e71f

Please sign in to comment.