Skip to content

Commit e25bd31

Browse files
Leave HASHSU gas coas as is (#1818)
Co-authored-by: SpyCheese <[email protected]>
1 parent bb0af68 commit e25bd31

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crypto/vm/tonops.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,7 @@ int exec_compute_hash(VmState* st, int mode) {
620620
auto cs = stack.pop_cellslice();
621621
CellBuilder cb;
622622
CHECK(cb.append_cellslice_bool(std::move(cs)));
623-
if (st->get_global_version() >= 12) {
624-
hash = cb.finalize_novm()->get_hash().as_array();
625-
} else {
626-
hash = cb.finalize()->get_hash().as_array();
627-
}
623+
hash = cb.finalize()->get_hash().as_array();
628624
} else { // builder
629625
auto cb = stack.pop_builder();
630626
hash = cb.write().finalize_novm()->get_hash().as_array();

doc/GlobalVersions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ new_bounce_body#fffffffe
268268
- `HASHBU` (`b - hash`) - same as `ENDC HASHCU`, but without gas cost for cell creation. Gas cost: `26`.
269269

270270
### Other TVM changes
271-
- `HASHSU` (`s - hash`) now does not spend gas for cell creation. Gas cost: `26`.
272271
- `SENDMSG` instruction treats `extra_flags` field accordingly (see above).
273272

274273
### Other changes

0 commit comments

Comments
 (0)