Skip to content

Commit

Permalink
0.0.60 - allow up to 4 transfers at once; transfer.seqno check - it m…
Browse files Browse the repository at this point in the history
…ust be number >= 0;
  • Loading branch information
tolya-yanot committed Feb 16, 2023
1 parent 71065b1 commit b550969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/tonweb.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/contract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class Contract {
}
// TODO we also should check for free refs here
if (body) {
if (commonMsgInfo.bits.getFreeBits() >= body.bits.getUsedBits()) {
if ((commonMsgInfo.bits.getFreeBits() >= body.bits.getUsedBits()) && (commonMsgInfo.refs.length + body.refs.length <= 4)) {
commonMsgInfo.bits.writeBit(false);
commonMsgInfo.writeCell(body);
} else {
Expand Down

0 comments on commit b550969

Please sign in to comment.