Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Port the C# contract provided in the https://github.com/neo-project/neo/issues/2647#issuecomment-1129849870 and add an integration test for it. Part of the #3002. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>