Skip to content

Commit

Permalink
Merge branch 'master' into fix-build
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Jan 3, 2024
2 parents 57dd0ae + 5c9699e commit d5cbfbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Neo.VM/ExecutionEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public VMState State
{
return state;
}
internal protected set
protected internal set
{
if (state != value)
{
Expand Down Expand Up @@ -1459,7 +1459,7 @@ private void ExecuteLoadFromSlot(Slot? slot, int index)
/// <summary>
/// Execute the next instruction.
/// </summary>
internal protected void ExecuteNext()
protected internal void ExecuteNext()
{
if (InvocationStack.Count == 0)
{
Expand Down
7 changes: 4 additions & 3 deletions src/Neo/SmartContract/ApplicationEngine.Storage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected internal StorageContext GetReadOnlyContext()
/// </summary>
/// <param name="context">The storage context to convert.</param>
/// <returns>The readonly storage context.</returns>
internal protected static StorageContext AsReadOnly(StorageContext context)
protected internal static StorageContext AsReadOnly(StorageContext context)
{
if (!context.IsReadOnly)
context = new StorageContext
Expand Down Expand Up @@ -167,8 +167,9 @@ protected internal IIterator Find(StorageContext context, byte[] prefix, FindOpt
/// <param name="value">The value of the entry.</param>
protected internal void Put(StorageContext context, byte[] key, byte[] value)
{
if (key.Length > MaxStorageKeySize || value.Length > MaxStorageValueSize || context.IsReadOnly)
throw new ArgumentException();
if (key.Length > MaxStorageKeySize) throw new ArgumentException("Key length too big", nameof(key));
if (value.Length > MaxStorageValueSize) throw new ArgumentException("Value length too big", nameof(value));
if (context.IsReadOnly) throw new ArgumentException("StorageContext is readonly", nameof(context));

int newDataSize;
StorageKey skey = new()
Expand Down

0 comments on commit d5cbfbd

Please sign in to comment.