-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make adm compatible with new contracts #2662
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2662 +/- ##
==========================================
- Coverage 30.43% 30.40% -0.03%
==========================================
Files 406 406
Lines 30068 30095 +27
==========================================
Hits 9150 9150
- Misses 20134 20161 +27
Partials 784 784 ☔ View full report in Codecov by Sentry. |
"register" doesn't work for TLDs since 0.18.0. Signed-off-by: Roman Khimov <roman@nspcc.ru>
With current adm it's the easiest way to ensure domains are present when we're deploying contracts. Additional NNS parameters are ignored by old contracts, but used in 0.18.0+ versions. Signed-off-by: Roman Khimov <roman@nspcc.ru>
Old (pre-0.18.0) versions will just ignore this, but newer ones will deploy the TLD we need. Signed-off-by: Roman Khimov <roman@nspcc.ru>
* netmap must be deployed first, balance and container depend on it * they also call it during deployment and need an appropriate witness * we can't send independent deployment transactions in this scenario * but our contract set fits into a single transaction, luckily Signed-off-by: Roman Khimov <roman@nspcc.ru>
4bcb84c
to
4e22e02
Compare
@@ -290,6 +290,20 @@ func (c *initializeContext) getSigner(fancyScope bool, acc *wallet.Account) tran | |||
} | |||
|
|||
signer = morphClient.GetUniversalSignerScope(nnsHash, balanceHash, cntHash, netmapHash, neofsIDHash) | |||
// Deploy-only rules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dangerous, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why? They're never needed during regular operation.
No description provided.