Skip to content

Allow to get the native contract state without a projectSettings#3171

Merged
shargon merged 2 commits intomasterfrom
core-get-cstate
Mar 3, 2024
Merged

Allow to get the native contract state without a projectSettings#3171
shargon merged 2 commits intomasterfrom
core-get-cstate

Conversation

@shargon
Copy link
Member

@shargon shargon commented Mar 2, 2024

It helps for neo-project/neo-devpack-dotnet#976

Allow to get the native contract state without having a protocolSettings.

@shargon shargon changed the title Allow to get the contract state without a projectSettings Allow to get the native contract state without a projectSettings Mar 2, 2024
{
// Get allowed methods and nef script
NativeContractsCache.CacheEntry allowedMethods = GetAllowedMethods(settings, index);
var allowedMethods = GetAllowedMethods(hfChecker, index);
Copy link
Member

Choose a reason for hiding this comment

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

Just a question from my side: var-style variable declaration is a kind of accepted standard for this repo now? E.g. should we declare variables in the same way (with type omission)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer Type x=new() but @Jim8y and @cschuchardt88 prefer this style

Copy link
Member

Choose a reason for hiding this comment

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

Type x=new()

This way is more clear wrt variable types, and I see that a lot of old code support this way. OK.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, I am not in any preference, I can accept any type, I just don't want to ban var. to be honest, I don't care about the style at all.

@shargon shargon merged commit 934b2e8 into master Mar 3, 2024
@shargon shargon deleted the core-get-cstate branch March 3, 2024 20:59
@roman-khimov roman-khimov added this to the v3.7.0 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants