neoneo-go/pkg/core/interop/contract
Anna Shaleva dc4d5a2dc6 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.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-06-04 13:56:10 +03:00
..
account.go core: move contract-related interop code into appropriate package 2022-06-08 16:02:07 +03:00
account_test.go *: replace slice.Copy with bytes.Clone 2024-03-05 13:54:10 +03:00
call.go interop: use currently executing contract state for permissions check 2024-06-04 13:56:10 +03:00
call_test.go interop: use currently executing contract state for permissions check 2024-06-04 13:56:10 +03:00