Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Aug 20, 2024
1 parent 099b52e commit e276d52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chainservice/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,14 @@ func (builder *Builder) buildActionPool() error {
if builder.cs.actpool == nil {
options := []actpool.Option{}
if builder.cfg.ActPool.Store != nil {
evmID := builder.cfg.Chain.EVMNetworkID
d := &action.Deserializer{}
d.SetEvmNetworkID(builder.cfg.Chain.EVMNetworkID)
options = append(options, actpool.WithStore(
*builder.cfg.ActPool.Store,
func(selp *action.SealedEnvelope) ([]byte, error) {
return proto.Marshal(selp.Proto())
},
func(blob []byte) (*action.SealedEnvelope, error) {
d := &action.Deserializer{}
d.SetEvmNetworkID(evmID)
a := &iotextypes.Action{}
if err := proto.Unmarshal(blob, a); err != nil {
return nil, err
Expand Down

0 comments on commit e276d52

Please sign in to comment.