FuelLabs/sway

Rename storage access methods

Open

#4 740 ouverte le 4 juil. 2023

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Rust (5 421 forks)batch import
breakingcompiler: uienhancementgood first issuelib: stdstorageteam:compiler

Métriques du dépôt

Stars
 (61 702 stars)
Métriques de merge PR
 (Merge moyen 5j 4h) (19 PRs mergées en 30 j)

Description

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.

Guide contributeur