taohe

Move smart contracts implementing nestable resources on MoveVM blockchains

View on GitHub

Module 0x2f66c09143acc52a85fec529a4e20c85::Torch

A dummy resource for testing and development purposes. Can be passed along like.. ..a torch. This is not technically a tao, since it can’t contain other taos.

Resource Torch

This resource does not contain anything, and is intended to be used only for testing.

struct Torch has store, key
Fields
dummy_field: bool

Function new

Create a new torch

public fun new(): Torch::Torch
Implementation
public fun new(): Torch {
    Torch {}
}
Specification
aborts_if false;

Function destroy

Destroy a torch created with new()

public fun destroy(torch: Torch::Torch)
Implementation
public fun destroy(torch: Torch) {
    let Torch {} = torch;
}
Specification
aborts_if false;