Register contract's NNS domain record in deployment transaction #339
Labels
enhancement
Improving existing functionality
I3
Minimal impact
nns
NNS contract related issue
S3
Minimally significant
U4
Nothing urgent
Currently management of NeoFS contracts on the Sidechain completely relies on NNS: addresses (hashes) are set in corresponding domain record and used by the whole system. However, now the procedure for deploying a contract and registering domain names is not an atomic operation, because executed in separate transactions. This complicates synchronization, and also puts at risk the use of NNS as a source of up-to-date information on the status of contracts.
Proposal
Register (set) contract NNS domain in deployment transaction via
_deploy
callback. Fail deployment if contract domain can't be registered.I would make this a deployment option (extra parameter). But maybe it's worth to do by default or even always.
Pls share ur Thoughts @roman-khimov @AnnaShaleva
The text was updated successfully, but these errors were encountered: