Closed beer-1 closed 2 months ago
The changes introduce a new public function, object_exists<T: key>(object: address): bool
, to both the initia_std::object
and minitia_std::object
modules. This function verifies the existence of an object of a specified generic type at a given address, enhancing type safety and resource management. The existing functionality of the create_object_address
function remains unchanged in both modules.
Files | Change Summary |
---|---|
precompile/modules/initia_stdlib/... |
Added public fun object_exists<T: key>(object: address): bool to check object existence. |
precompile/modules/minitia_stdlib/... |
Added public fun object_exists<T: key>(object: address): bool to check object existence. |
🐇 In the land of code where objects play,
A new function blooms, brightening the way.
With checks for existence, both safe and sound,
Resources managed, in joy we are bound.
Hooray for the changes, let’s hop and cheer,
For the magic of coding brings us all near! 🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit
object_exists
function in bothinitia_std::object
andminitia_std::object
modules.