Skip to content

Commit

Permalink
Expose GetContractState (#3161)
Browse files Browse the repository at this point in the history
* Update NativeContract.cs

* Update MemoryStoreProvider.cs

* Update Neo.csproj
  • Loading branch information
shargon authored Feb 23, 2024
1 parent 022a63e commit 66ef246
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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" />
</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
{
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

0 comments on commit 66ef246

Please sign in to comment.