Skip to content

Commit

Permalink
remove transactionHash type
Browse files Browse the repository at this point in the history
  • Loading branch information
cicr99 committed Sep 22, 2023
1 parent 72cf46a commit 57da5e6
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions rpc/type_block_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,30 +90,6 @@ type BlockDeployAccountTxn struct {
DeployAccountTxn
}

// type TransactionHash struct {
// TransactionHash *felt.Felt `json:"transaction_hash"`
// }

// func (t TransactionHash) Hash() *felt.Felt {
// return t.TransactionHash
// }

// func (t *TransactionHash) UnmarshalJSON(input []byte) error {
// return t.TransactionHash.UnmarshalJSON(input)
// }

// func (t TransactionHash) MarshalJSON() ([]byte, error) {
// return t.TransactionHash.MarshalJSON()
// }

// func (t TransactionHash) MarshalText() ([]byte, error) {
// return t.TransactionHash.MarshalJSON()
// }

// func (t *TransactionHash) UnmarshalText(input []byte) error {
// return t.TransactionHash.UnmarshalJSON(input)
// }

func (txns *BlockTransactions) UnmarshalJSON(data []byte) error {
var dec []interface{}
if err := json.Unmarshal(data, &dec); err != nil {
Expand Down

0 comments on commit 57da5e6

Please sign in to comment.