Skip to content

Commit

Permalink
Fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 9, 2025
1 parent 0e400a1 commit 6d76469
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions adapters/p2p2core/receipt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import (
"testing"

"github.com/NethermindEth/juno/adapters/p2p2core"
"github.com/NethermindEth/juno/p2p/starknet/spec"
"github.com/NethermindEth/juno/p2p/gen"
"github.com/NethermindEth/juno/utils"
"github.com/stretchr/testify/assert"
)

func TestAdaptReceipt(t *testing.T) {
t.Run("successful", func(t *testing.T) {
hash := utils.HexToFelt(t, "0xCAFEBABE")
receipt := &spec.Receipt{
Type: &spec.Receipt_L1Handler_{
L1Handler: &spec.Receipt_L1Handler{
Common: &spec.Receipt_Common{
receipt := &gen.Receipt{
Type: &gen.Receipt_L1Handler_{
L1Handler: &gen.Receipt_L1Handler{
Common: &gen.Receipt_Common{
RevertReason: nil,
},
},
Expand All @@ -30,10 +30,10 @@ func TestAdaptReceipt(t *testing.T) {

for _, reason := range reasons {
hash := utils.HexToFelt(t, "0xCAFEDEAD")
receipt := &spec.Receipt{
Type: &spec.Receipt_L1Handler_{
L1Handler: &spec.Receipt_L1Handler{
Common: &spec.Receipt_Common{
receipt := &gen.Receipt{
Type: &gen.Receipt_L1Handler_{
L1Handler: &gen.Receipt_L1Handler{
Common: &gen.Receipt_Common{
RevertReason: utils.Ptr(reason),
},
},
Expand Down

0 comments on commit 6d76469

Please sign in to comment.