Skip to content

Commit

Permalink
update with main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanGodara committed May 21, 2024
1 parent e61f6d9 commit 432a8c5
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions rpc/types_block_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ func (tx BlockInvokeTxnV1) Hash() *felt.Felt {
}

// Hash returns the hash of the BlockInvokeTxnV3 transaction.
<<<<<<< HEAD
=======
//
// Parameters:
//
// none
//
// Returns:
// - *felt.Felt: the transaction hash
>>>>>>> b858597 (update block_tests)
func (tx BlockInvokeTxnV3) Hash() *felt.Felt {
return tx.TransactionHash
}
Expand All @@ -66,16 +56,6 @@ func (tx BlockDeclareTxnV2) Hash() *felt.Felt {
}

// Hash returns the transaction hash of the BlockDeclareTxnV3.
<<<<<<< HEAD
=======
//
// Parameters:
//
// none
//
// Returns:
// - *felt.Felt: the transaction hash
>>>>>>> b858597 (update block_tests)
func (tx BlockDeclareTxnV3) Hash() *felt.Felt {
return tx.TransactionHash
}
Expand Down Expand Up @@ -217,7 +197,6 @@ func unmarshalBlockTxn(t interface{}) (BlockTransaction, error) {
case TransactionType_Invoke:
if casted["version"].(string) == "0x0" {
var txn BlockInvokeTxnV0
<<<<<<< HEAD
err := remarshal(casted, &txn)
return txn, err
} else if casted["version"].(string) == "0x1" {
Expand All @@ -228,18 +207,6 @@ func unmarshalBlockTxn(t interface{}) (BlockTransaction, error) {
var txn BlockInvokeTxnV3
err := remarshal(casted, &txn)
return txn, err
=======
remarshal(casted, &txn)
return txn, nil
} else if casted["version"].(string) == "0x1" {
var txn BlockInvokeTxnV1
remarshal(casted, &txn)
return txn, nil
} else {
var txn BlockInvokeTxnV3
remarshal(casted, &txn)
return txn, nil
>>>>>>> b858597 (update block_tests)
}
case TransactionType_L1Handler:
var txn BlockL1HandlerTxn
Expand Down

0 comments on commit 432a8c5

Please sign in to comment.