Skip to content

Commit

Permalink
Use git version of everscale-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Aug 13, 2024
1 parent 211356a commit 13d1432
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
29 changes: 21 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ chumsky = "1.0.0-alpha.7"
console = "0.15"
dashmap = "5.5"
either = "1.9"
everscale-types = "0.1.0-rc.7"
hex = "0.4"
num-bigint = "0.4"
num-traits = "0.2"
Expand All @@ -31,3 +30,5 @@ tower-lsp = "0.20"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
unicode-width = "0.1"

everscale-types = { git = "https://github.com/broxus/everscale-types.git" }
4 changes: 2 additions & 2 deletions asm/src/asm/opcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl Context {

fn top_capacity(&self) -> (u16, u8) {
match self.stack.last() {
Some(last) => (last.spare_bits_capacity(), last.spare_refs_capacity()),
Some(last) => (last.spare_capacity_bits(), last.spare_capacity_refs()),
None => (MAX_BIT_LEN, MAX_REF_COUNT as u8),
}
}
Expand All @@ -94,7 +94,7 @@ impl Context {
let mut result = None::<CellBuilder>;
while let Some(mut last) = stack.pop() {
if let Some(child) = result.take() {
if last.has_capacity(child.bit_len(), child.reference_count()) {
if last.has_capacity(child.size_bits(), child.size_refs()) {
last.store_slice(child.as_full_slice())
} else {
last.store_reference(child.build_ext(cell_context).with_span(block_span)?)
Expand Down

0 comments on commit 13d1432

Please sign in to comment.