Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Mar 13, 2024
1 parent 67ab742 commit 27131ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liteapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ func decodeAccountDataFromProof(bocBytes []byte, account ton.AccountID) (uint64,
if err != nil {
return 0, tlb.Bits256{}, err
}
if len(cells) < 1 {
return 0, tlb.Bits256{}, fmt.Errorf("must be at least one root cell")
if len(cells) < 2 {
return 0, tlb.Bits256{}, fmt.Errorf("must be at least two root cells")
}
var proof struct {
Proof tlb.MerkleProof[tlb.ShardStateUnsplit]
Expand Down

0 comments on commit 27131ed

Please sign in to comment.