Skip to content

Commit

Permalink
Remove UnknownMsgOp case for marshal
Browse files Browse the repository at this point in the history
  • Loading branch information
erokhinav committed Oct 3, 2024
1 parent 626c2ed commit 35fe4dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions abi/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ func (body InMsgBody) MarshalTLB(c *boc.Cell, encoder *tlb.Encoder) error {
if body.SumType == EmptyMsgOp {
return nil
}
if body.SumType == UnknownMsgOp {
c, ok := body.Value.(*boc.Cell)
if !ok {
return fmt.Errorf("unknown MsgBody should be Cell")
}
return tlb.Marshal(c, body.Value)
}
if body.OpCode != nil {
err := c.WriteUint(uint64(*body.OpCode), 32)
if err != nil {
Expand Down

0 comments on commit 35fe4dd

Please sign in to comment.