@tact-lang/opcode
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -8,2 +8,7 @@ # Changelog | ||
## [0.0.8] - 2023-03-24 | ||
## Fixed | ||
- Fix hashes in shifted cells | ||
## [0.0.7] - 2023-03-24 | ||
@@ -10,0 +15,0 @@ |
@@ -16,2 +16,3 @@ "use strict"; | ||
src: args.src, | ||
srcOffset: args.srcOffset, | ||
allowUnknown: false | ||
@@ -60,3 +61,2 @@ }); | ||
let name = knownMethods_1.knownMethods[key] || '?fun_' + (unknownIndex++); | ||
let body = value.cell.beginParse().skip(value.offset).asCell(); | ||
let w = new Writer_1.Writer(); | ||
@@ -66,3 +66,3 @@ w.inIndent(() => { | ||
decompileCell({ | ||
src: body, | ||
src: value.cell, | ||
srcOffset: value.offset, | ||
@@ -69,0 +69,0 @@ root: false, |
@@ -21,5 +21,8 @@ "use strict"; | ||
// Parse cell | ||
let globalOffset = args.srcOffset || 0; | ||
let scl = sc.remainingBits; | ||
let sco = 0; | ||
let sco = args.srcOffset || 0; | ||
// Skip offset | ||
if (args.srcOffset && args.srcOffset > 0) { | ||
sc.skip(args.srcOffset); | ||
} | ||
while (sc.remainingBits > 0) { | ||
@@ -46,3 +49,3 @@ // Load opcode | ||
}, | ||
offset: currentOffset + globalOffset, | ||
offset: currentOffset, | ||
length: currentLength | ||
@@ -59,3 +62,3 @@ }); | ||
op: opcode.read, | ||
offset: currentOffset + globalOffset, | ||
offset: currentOffset, | ||
length: currentLength | ||
@@ -62,0 +65,0 @@ }); |
{ | ||
"name": "@tact-lang/opcode", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/tact-lang/ton-opcode.git", |
@@ -22,2 +22,3 @@ import { beginCell, BitReader, Cell, Dictionary, DictionaryValue } from "ton-core"; | ||
src: args.src, | ||
srcOffset: args.srcOffset, | ||
allowUnknown: false | ||
@@ -72,3 +73,2 @@ }); | ||
let name = knownMethods[key] || '?fun_' + (unknownIndex++); | ||
let body = value.cell.beginParse().skip(value.offset).asCell(); | ||
let w = new Writer(); | ||
@@ -78,3 +78,3 @@ w.inIndent(() => { | ||
decompileCell({ | ||
src: body, | ||
src: value.cell, | ||
srcOffset: value.offset, | ||
@@ -81,0 +81,0 @@ root: false, |
@@ -29,5 +29,10 @@ import { beginCell, Cell, Slice } from "ton-core"; | ||
// Parse cell | ||
let globalOffset = args.srcOffset || 0; | ||
let scl = sc.remainingBits; | ||
let sco = 0; | ||
let sco = args.srcOffset || 0; | ||
// Skip offset | ||
if (args.srcOffset && args.srcOffset > 0) { | ||
sc.skip(args.srcOffset); | ||
} | ||
while (sc.remainingBits > 0) { | ||
@@ -57,3 +62,3 @@ | ||
}, | ||
offset: currentOffset + globalOffset, | ||
offset: currentOffset, | ||
length: currentLength | ||
@@ -70,3 +75,3 @@ }); | ||
op: opcode.read, | ||
offset: currentOffset + globalOffset, | ||
offset: currentOffset, | ||
length: currentLength | ||
@@ -73,0 +78,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6054826
5884