gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
842 stars 343 forks source link

minimal `p/ownable` Interface with multiple implementations #2193

Open moul opened 1 month ago

moul commented 1 month ago

Propose refactoring p/ownable from a struct with a specific implementation to a more minimal interface, allowing for custom ownership logic while retaining the current struct as the default implementation.

Details

cc @leohhhn

linhpn99 commented 1 month ago

I think I understand this issue. If permitted, can I create a pull request to resolve it?

linhpn99 commented 1 month ago

https://github.com/gnolang/gno/pull/2198 hey @moul @leohhhn I have implemented the PR for this issue. Can you take a look and provide any feedback? Do we need to add a custom implementation ?