Skip to content

Commit

Permalink
Fix first contract id (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Jan 28, 2021
1 parent 9770748 commit 87856b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/SmartContract/Native/ContractManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private int GetNextAvailableId(DataCache snapshot)
internal override void Initialize(ApplicationEngine engine)
{
engine.Snapshot.Add(CreateStorageKey(Prefix_MinimumDeploymentFee), new StorageItem(10_00000000));
engine.Snapshot.Add(CreateStorageKey(Prefix_NextAvailableId), new StorageItem(0));
engine.Snapshot.Add(CreateStorageKey(Prefix_NextAvailableId), new StorageItem(1));
}

internal override void OnPersist(ApplicationEngine engine)
Expand Down

0 comments on commit 87856b9

Please sign in to comment.