Skip to content
anatol edited this page Jul 13, 2021 · 1 revision

Env::AssetDestroy

uint8_t AssetDestroy(AssetID aid);

Destroys the asset type specified by aid.

Parameters

  • aid : asset id

Return value

  • 1 if successful
  • 0 otherwise

Notes

  • Halt() if asset specified by aid was not created by this contract
  • fails if the asset can't be destroyed (not fully burned, lock time didn't elapse, etc.)

Example

Clone this wiki locally