Skip to content

Commit

Permalink
Removed unused amt variable in v5
Browse files Browse the repository at this point in the history
  • Loading branch information
xssnick committed May 18, 2024
1 parent 9213c8f commit 59ed8f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ton/wallet/v5r1.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"github.com/xssnick/tonutils-go/tlb"
"github.com/xssnick/tonutils-go/ton"
"math/big"
"time"

"github.com/xssnick/tonutils-go/tvm/cell"
Expand Down Expand Up @@ -68,11 +67,8 @@ func packV5Actions(messages []*Message) (*cell.Builder, error) {
return nil, fmt.Errorf("max 255 messages allowed for v5")
}

var amt = big.NewInt(0)
var list = cell.BeginCell().EndCell()
for _, message := range messages {
amt = amt.Add(amt, message.InternalMessage.Amount.Nano())

outMsg, err := tlb.ToCell(message.InternalMessage)
if err != nil {
return nil, err
Expand Down

0 comments on commit 59ed8f5

Please sign in to comment.