Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose GetContractState #3161

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Neo/Neo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<ItemGroup>
<InternalsVisibleTo Include="Neo.SmartContract.Testing" />
<InternalsVisibleTo Include="Neo.SmartContract.TestEngine" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, the old testEngine require some internals too

</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Neo/Persistence/MemoryStoreProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Neo.Persistence
{
internal class MemoryStoreProvider : IStoreProvider
public class MemoryStoreProvider : IStoreProvider
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jim8y Now that we have two constructors in neoSystem, we need to expose also de provider, otherwise, devpack also fails.

{
public string Name => nameof(MemoryStore);
public IStore GetStore(string path) => new MemoryStore();
Expand Down
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/Native/NativeContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private NativeContractsCache.CacheEntry GetAllowedMethods(ProtocolSettings setti
/// <param name="settings">The <see cref="ProtocolSettings"/> where the HardForks are configured.</param>
/// <param name="index">Block index</param>
/// <returns>The <see cref="ContractState"/>.</returns>
internal ContractState GetContractState(ProtocolSettings settings, uint index)
public ContractState GetContractState(ProtocolSettings settings, uint index)
{
// Get allowed methods and nef script
NativeContractsCache.CacheEntry allowedMethods = GetAllowedMethods(settings, index);
Expand Down
Loading