-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
Milestone
Description
It's often we write
struct TonWalletXYZStorage {
// some fields
}
fun TonVaultStorage.load() {
return TonVaultStorage.fromCell(contract.getData());
}
fun TonVaultStorage.save(self) {
errorsBoc.contract.setData(self.toCell());
}
There should be snippet in LS when you write storage
word that autocompletes these functions, allows to choose name for storage and then helps you fill fields