nspcc-dev / neofs-contract

NeoFS smart-contract
Other
9 stars 17 forks source link

Get contract hashes from NNS during setup #325

Closed roman-khimov closed 7 months ago

roman-khimov commented 1 year ago

We have a number of contracts and they use each other for various purposes, so many of them have _deploy parameters to specify hashes of other contracts. These parameters are not very useful and making deployment/upgrades more complicated then they need to be since we always have NNS in sidechain and it always has proper hashes of the target contracts.

cthulhu-rider commented 1 year ago

I'm a bit confused of next deployment parameters:

Will there be a conflict during deployment, or it is assumed that the hashes are known in advance (in the current topic - registered in the NNS)?

roman-khimov commented 1 year ago

The first one is only used during cleanup and can be reworked to not do so, #327.