Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-kim committed Sep 8, 2023
1 parent 99272a4 commit fe12df2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugin/evm/gossip_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/ava-labs/coreth/core"
"github.com/ava-labs/coreth/core/txpool"
"github.com/ava-labs/coreth/core/types"
"github.com/ava-labs/coreth/plugin/evm/message"
)

var (
Expand All @@ -26,19 +25,19 @@ var (
)

type GossipAtomicTx struct {
Tx *Tx `serialize:"true"`
Tx *Tx
}

func (tx *GossipAtomicTx) GetID() ids.ID {
return tx.Tx.ID()
}

func (tx *GossipAtomicTx) Marshal() ([]byte, error) {
return Codec.Marshal(message.Version, tx)
return tx.Tx.SignedBytes(), nil
}

func (tx *GossipAtomicTx) Unmarshal(bytes []byte) error {
_, err := Codec.Unmarshal(bytes, tx)
_, err := Codec.Unmarshal(bytes, tx.Tx)
return err
}

Expand Down

0 comments on commit fe12df2

Please sign in to comment.