[#184] *: Remove method prefix in panic messages

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-11-29 13:51:57 +03:00 committed by Alex Vanin
parent 4961e9b436
commit ac89694eeb
12 changed files with 144 additions and 144 deletions

View file

@ -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)