Skip to content

Add build-in snippet for storage #79

@Kaladin13

Description

@Kaladin13

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions