forked from TrueCloudLab/frostfs-contract
nns: provide AllowCall
to management.Update
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
978a43cec2
commit
b2f6fb641a
1 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,12 @@ type RecordState struct {
|
|||
// Update updates NameService contract.
|
||||
func Update(nef []byte, manifest string) {
|
||||
checkCommittee()
|
||||
management.Update(nef, []byte(manifest))
|
||||
// Calculating keys and serializing requires calling
|
||||
// std and crypto contracts. This can be helpful on update
|
||||
// thus we provide `AllowCall` to management.Update.
|
||||
// management.Update(nef, []byte(manifest))
|
||||
contract.Call(interop.Hash160(management.Hash), "update",
|
||||
contract.All, nef, manifest)
|
||||
}
|
||||
|
||||
// _deploy initializes defaults (total supply and registration price) on contract deploy.
|
||||
|
|
Loading…
Reference in a new issue