Skip to content

Commit

Permalink
fix invalid signature
Browse files Browse the repository at this point in the history
  • Loading branch information
wlawt committed Apr 25, 2024
1 parent d4fa834 commit d1411f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func (t *Transaction) Digest() ([]byte, error) {
p := codec.NewWriter(size, consts.NetworkSizeLimit)
t.Base.Marshal(p)
p.PackInt(len(t.Actions))
for i, action := range t.Actions {
p.PackAddress(action.GetActionID(uint8(i), t.id))
for _, action := range t.Actions {
p.PackByte(action.GetTypeID())
action.Marshal(p)
}
return p.Bytes(), p.Err()
Expand Down

0 comments on commit d1411f2

Please sign in to comment.