forked from TrueCloudLab/frostfs-contract
[#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:
parent
59d11af046
commit
a4a9a49a76
8 changed files with 2 additions and 41 deletions
|
@ -52,10 +52,6 @@ var (
|
|||
)
|
||||
|
||||
func init() {
|
||||
if runtime.GetTrigger() != runtime.Application {
|
||||
panic("contract has not been called in application node")
|
||||
}
|
||||
|
||||
ctx = storage.GetContext()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue