neoneo-go/pkg
Anna Shaleva f57187e611 vm: throw unhandled exception with message instead of panic
The result is the same HALT state, but the exception message is the real
one got from user. Changes ported from C#:

1. Throw exception: 59b8ac73d2/src/neo-vm/ExecutionEngine.cs (L1448)
2. Prettify message: https://github.com/neo-project/neo-vm/blob/master/src/neo-vm/VMUnhandledException.cs#L28

The result is that instead of
```
2021-03-31T17:02:54.508+0300	WARN	contract invocation failed	{"tx": "2aefeb705f3a609df8767d9b45e036b9dd1eb77407e5732375981915668889b8", "block": 30640, "error": "error encountered at instruction 970 (THROW): runtime error: invalid memory address or nil pointer dereference"}
```

we'll get
```
2021-03-31T17:33:56.299+0300	WARN	contract invocation failed	{"tx": "2aefeb705f3a609df8767d9b45e036b9dd1eb77407e5732375981915668889b8", "block": 30640, "error": "error encountered at instruction 970 (THROW): unhandled exception: No authorization."}
```
in the node logs.
2021-03-31 19:37:52 +03:00
..
compiler core: move NNS record types to a separate package 2021-03-26 20:44:32 +03:00
config config: adjust default testnet magic for RC1 testnet 2021-03-24 10:57:05 +03:00
consensus payload: drop Network from Extensible 2021-03-26 13:45:18 +03:00
core core: pop all args from stack before validation checks in Notify 2021-03-31 19:01:05 +03:00
crypto crypto: add Hashable to VerifiableDecodable 2021-03-26 13:45:18 +03:00
encoding *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
interop roles: add missing NeoFSAlphabet role 2021-03-19 16:18:45 +03:00
io *: upgrade tests to use T.Cleanup() 2021-03-01 17:08:00 +03:00
network Merge pull request #1859 from nspcc-dev/rework-signing-fix-stateroots 2021-03-26 14:04:23 +03:00
rpc Merge pull request #1857 from nspcc-dev/rpc/nep11 2021-03-27 18:27:29 +03:00
services stateroot: handle ErrStateMismatch internally 2021-03-27 00:33:11 +03:00
smartcontract transaction: drop Network from Transaction 2021-03-26 13:45:18 +03:00
util native/vm: add script check for deployed contracts 2021-02-09 22:31:26 +03:00
vm vm: throw unhandled exception with message instead of panic 2021-03-31 19:37:52 +03:00
wallet transaction: drop Network from Transaction 2021-03-26 13:45:18 +03:00