Slice.loadBool() function to the core libraryIt nicely mirrors the existing Builder.storeBool() function, loading a single bit as a signed Int and producing
true if it's 1 in binary, and false otherwise.let slice = beginCell().storeBool(true).asSlice();
let dice = slice.loadBool(); // true
💡 Inspired by a discussion with a community member
🧑🍳 Contributor: Gusarich
🐙 Implementation: #412
🍽 To be released in: v1.4.0
⚡️ 1. Fixed a compilation failure with
as coins serialization in mapsPreviously, if you've tried to compile the following (or similar):
import "@stdlib/deploy";
contract WhatCoin with Deployable {
c: map<Address, Int as coins>; // ← 👀
}
It produced a compilation error, telling you that
coins is unsupported in map values. But that wasn't right, coins serialization format for Ints as map keys and values should've been supported!✅ And now it is, so the snippet above compiles just fine.
⁉️ Reported by: howardpen9
🧑🍳 Fixed by: Gusarich
🐙 Implementation: #413
🍽 To be released in: v1.4.0
🍲 Gimme, gimme, gimme your bugs after midnight
♨️ @tact_kitchen
