FuelLabs/sway

Rename storage access methods

Open

#4,740 创建于 2023年7月4日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Rust (5,421 fork)batch import
breakingcompiler: uienhancementgood first issuelib: stdstorageteam:compiler

仓库指标

Star
 (61,702 star)
PR 合并指标
 (平均合并 22小时 6分钟) (30 天内合并 16 个 PR)

描述

StorageKey's read and try_read are confusing, notably because of errors related to uninitialized storage.

try_read should be the default behavior and there should be extensive documentation of what happens with the storage initialization.

try_read should be renamed to read and read to read_unchecked, but this is a breaking and abrasive change, so we should consider a way of migrating the interface that doesn't startle the users.

贡献者指南