forked from TrueCloudLab/frostfs-contract
[#184] *: Remove method prefix in panic messages
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
4961e9b436
commit
ac89694eeb
12 changed files with 144 additions and 144 deletions
|
@ -22,7 +22,7 @@ const (
|
|||
func OnNEP17Payment(from interop.Hash160, amount int, data interface{}) {
|
||||
caller := runtime.GetCallingScriptHash()
|
||||
if !common.BytesEqual(caller, []byte(gas.Hash)) {
|
||||
panic("onNEP17Payment: processing contract accepts GAS only")
|
||||
panic("processing contract accepts GAS only")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ func _deploy(data interface{}, isUpdate bool) {
|
|||
ctx := storage.GetContext()
|
||||
|
||||
if len(addrNeoFS) != 20 {
|
||||
panic("init: incorrect length of contract script hash")
|
||||
panic("incorrect length of contract script hash")
|
||||
}
|
||||
|
||||
storage.Put(ctx, neofsContractKey, addrNeoFS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue