File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,12 @@ export class FieldsOwnerTy<Anchor extends FieldsOwner> extends BaseTy<Anchor> {
97
97
res = mergeSizes ( res , size )
98
98
} )
99
99
100
- return res
100
+ const headerSize = this . anchor ?. node . type === "message" ? 32 : 0
101
+
102
+ return mergeSizes ( res , {
103
+ fixed : headerSize ,
104
+ floating : 0 ,
105
+ } )
101
106
}
102
107
}
103
108
@@ -135,10 +140,10 @@ export class PrimitiveTy extends BaseTy<Primitive> {
135
140
this . tlb === "varuint16" ||
136
141
this . tlb === "varint16"
137
142
) {
138
- return { fixed : 4 , floating : 124 }
143
+ return { fixed : 4 , floating : 120 }
139
144
}
140
145
if ( this . tlb === "varuint32" || this . tlb === "varint32" ) {
141
- return { fixed : 5 , floating : 253 }
146
+ return { fixed : 5 , floating : 248 }
142
147
}
143
148
144
149
const trimmed = trimPrefix ( trimPrefix ( this . tlb , "uint" ) , "int" )
@@ -154,7 +159,7 @@ export class PrimitiveTy extends BaseTy<Primitive> {
154
159
return { fixed : 1 , floating : 0 }
155
160
}
156
161
case "Address" : {
157
- return { fixed : 257 , floating : 0 }
162
+ return { fixed : 267 , floating : 0 }
158
163
}
159
164
case "Cell" :
160
165
case "Slice" :
You can’t perform that action at this time.
0 commit comments