Trust-Machines / BNS-V2

MIT License
10 stars 3 forks source link

Updating name-register checks #52

Closed Patotking12 closed 1 month ago

Patotking12 commented 2 months ago

Going through the contract again, I started thinking on the name-register function. And specifically on the case where both registrations where preordered.

They way we had it setup before we had to know the current owner to access the preorder information, but what if the current owner did not make the preorder and just received the name from a transfer?

So I added a field "preordered-by" on the name-properties map, so if the name changes owner, we will always now who registered it / made the preorder, and will be able to compare with that information.

Please let me know your thoughts @hstove