neo-go/pkg
Anna Shaleva a7aceca74a interop: use currently executing contract state for permissions check
It's not correct to use an updated contract state got from Management to
check for the allowed method call. We need to use manifest from the
currently executing context for that. It may be critical for cases when
executing contract is being updated firstly, and after that calls
another contract. So we need an old (executing) contract manifest for
this check.

This change likely does not affect the mainnet's state since it's hard
to meet the trigger criteria, but I'd put it under the hardfork anyway.

Ref. https://github.com/neo-project/neo/pull/3290.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-06-11 19:13:17 +03:00
..
compiler native: autogenerate nativehashes package 2024-05-14 09:39:53 +03:00
config interop: use currently executing contract state for permissions check 2024-06-11 19:13:17 +03:00
consensus consensus: use better dbFT 2024-03-25 19:21:51 +03:00
core interop: use currently executing contract state for permissions check 2024-06-11 19:13:17 +03:00
crypto crypto: export GetSignedData function 2024-05-13 09:33:42 +03:00
encoding *: drop go 1.18 support in doc and build targets 2023-10-12 17:59:42 +03:00
interop core: move P2PNotary node role out of P2PSigExtensions 2024-05-21 12:10:47 +03:00
io *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neorpc rpcsrv: add SessionEnabled, MaxIteratorResultItems to getversion 2024-04-03 22:42:14 +03:00
neotest crypto: add StringCompressed() for PublicKey 2024-04-11 15:24:46 +03:00
network network: extend errInvalidInvType error 2024-06-05 15:32:43 +03:00
rpcclient Merge pull request #3438 from nspcc-dev/unwrap-fault-exception 2024-05-17 10:24:26 +03:00
services oracle: add length check o.MainCfg.NeoFS.Nodes 2024-06-05 11:53:52 +03:00
smartcontract smartcontract: ensure nil ParameterContext Item's script is marshallable 2024-04-18 13:55:05 +03:00
util *: replace slice.Copy with bytes.Clone 2024-03-05 13:54:10 +03:00
vm interop: use executing contract state for permissions checks 2024-06-03 12:32:10 +03:00
wallet wallet: do not store deployed contract script inside Contract account 2024-06-05 15:27:20 +03:00