[#49] Remove trigger check from contracts

This check was useful when there was a single
entry point in contract. But right now there is
no point in this.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-02-11 19:20:38 +03:00 committed by Alex Vanin
parent 59d11af046
commit a4a9a49a76
8 changed files with 2 additions and 41 deletions

View file

@ -52,10 +52,6 @@ var (
)
func init() {
if runtime.GetTrigger() != runtime.Application {
panic("contract has not been called in application node")
}
ctx = storage.GetContext()
}