Comparing version 0.12.0 to 0.12.1
@@ -43,3 +43,3 @@ "use strict"; | ||
this.body.writeTo(body); | ||
if ((1023 - builder.bits) - 1 /* At least on byte for body */ >= body.bits) { | ||
if (builder.availableBits - 1 /* At least on byte for body */ >= body.bits) { | ||
builder.storeBit(0); | ||
@@ -46,0 +46,0 @@ builder.storeBuilder(body); |
import { Address } from "../address/Address"; | ||
import { ExternalAddress } from "../address/ExternalAddress"; | ||
import { Builder } from "../boc/Builder"; | ||
@@ -6,3 +7,3 @@ import { CommonMessageInfo } from "./CommonMessageInfo"; | ||
export declare class ExternalMessage implements Message { | ||
readonly from: Address | null; | ||
readonly from: ExternalAddress | null; | ||
readonly to: Address; | ||
@@ -13,3 +14,3 @@ readonly importFee: number; | ||
to: Address; | ||
from?: Address | null; | ||
from?: ExternalAddress | null; | ||
importFee?: number | null; | ||
@@ -16,0 +17,0 @@ body: CommonMessageInfo; |
@@ -20,7 +20,6 @@ "use strict"; | ||
writeTo(builder) { | ||
builder.storeBit(0); | ||
builder.storeBit(0); // SplitDepth | ||
builder.storeBit(0); // TickTock | ||
builder.storeMaybeRef(this.code); // Code | ||
builder.storeMaybeRef(this.data); // Code | ||
builder.storeMaybeRef(this.code); | ||
builder.storeMaybeRef(this.data); | ||
builder.storeBit(0); // Library | ||
@@ -27,0 +26,0 @@ } |
{ | ||
"name": "ton-core", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ton-community/ton-core.git", |
@@ -47,3 +47,3 @@ import { beginCell, Builder } from "../boc/Builder"; | ||
this.body.writeTo(body); | ||
if ((1023 - builder.bits) - 1 /* At least on byte for body */ >= body.bits) { | ||
if (builder.availableBits - 1 /* At least on byte for body */ >= body.bits) { | ||
builder.storeBit(0); | ||
@@ -50,0 +50,0 @@ builder.storeBuilder(body); |
import { Address } from "../address/Address"; | ||
import { ExternalAddress } from "../address/ExternalAddress"; | ||
import { Builder } from "../boc/Builder"; | ||
@@ -8,3 +9,3 @@ import { CommonMessageInfo } from "./CommonMessageInfo"; | ||
readonly from: Address | null; | ||
readonly from: ExternalAddress | null; | ||
readonly to: Address; | ||
@@ -14,3 +15,3 @@ readonly importFee: number; | ||
constructor(opts: { to: Address, from?: Address | null, importFee?: number | null, body: CommonMessageInfo }) { | ||
constructor(opts: { to: Address, from?: ExternalAddress | null, importFee?: number | null, body: CommonMessageInfo }) { | ||
this.to = opts.to; | ||
@@ -17,0 +18,0 @@ this.body = opts.body; |
@@ -25,9 +25,8 @@ import { Builder } from "../boc/Builder"; | ||
writeTo(builder: Builder) { | ||
builder.storeBit(0); | ||
builder.storeBit(0); // SplitDepth | ||
builder.storeBit(0); // TickTock | ||
builder.storeMaybeRef(this.code); // Code | ||
builder.storeMaybeRef(this.data); // Code | ||
builder.storeMaybeRef(this.code); | ||
builder.storeMaybeRef(this.data); | ||
builder.storeBit(0); // Library | ||
} | ||
} |
578681
192
10651