forked from TrueCloudLab/frostfs-contract
[#72] Replace Init()
methods with _deploy
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
e4ba936f50
commit
dd98bee590
10 changed files with 73 additions and 18 deletions
|
@ -25,7 +25,11 @@ func OnNEP17Payment(from interop.Hash160, amount int, data interface{}) {
|
|||
}
|
||||
}
|
||||
|
||||
func Init(owner, addrNeoFS interop.Hash160) {
|
||||
func _deploy(data interface{}, isUpdate bool) {
|
||||
arr := data.([]interop.Hash160)
|
||||
owner := arr[0]
|
||||
addrNeoFS := arr[1]
|
||||
|
||||
ctx := storage.GetContext()
|
||||
|
||||
if !common.HasUpdateAccess(ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue