forked from TrueCloudLab/frostfs-contract
[#25] Use go aliases
Change []byte type to interop.*aliasName* types in contracts where it is suitable to improve the readability of the contracts. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
91c2612d08
commit
508369be75
9 changed files with 41 additions and 40 deletions
|
@ -28,7 +28,7 @@ func OnNEP17Payment(from interop.Hash160, amount int, data interface{}) {
|
|||
}
|
||||
}
|
||||
|
||||
func Init(owner interop.Hash160, addrNetmap []byte) {
|
||||
func Init(owner, addrNetmap interop.Hash160) {
|
||||
if !common.HasUpdateAccess(ctx) {
|
||||
panic("only owner can reinitialize contract")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue