Skip to content

Commit

Permalink
https://github.com/neo-project/neo/pull/1920
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Jan 18, 2021
1 parent 7968ea0 commit a440e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo3/contracts/native/nativecontract.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ class _ValidatorsState(serialization.ISerializable):
def __init__(self, snapshot: storage.Snapshot, validators: List[cryptography.ECPoint]):
self._snapshot = snapshot
self._validators: List[cryptography.ECPoint] = validators
self._storage_key = storage.StorageKey(NeoToken().script_hash, NeoToken()._PREFIX_NEXT_VALIDATORS)
self._storage_key = storage.StorageKey(NeoToken().script_hash, NeoToken()._PREFIX_COMMITTEE)

with serialization.BinaryWriter() as bw:
bw.write_serializable_list(validators)
Expand Down Expand Up @@ -1067,7 +1067,7 @@ class NeoToken(Nep5Token):
_service_name = "NEO"
_decimals: int = 0

_PREFIX_NEXT_VALIDATORS = b'\x0e'
_PREFIX_COMMITTEE = b'\x0e'
_PREFIX_CANDIDATE = b'\x21'
_PREFIX_VOTERS_COUNT = b'\x01'
_PREFIX_GAS_PER_BLOCK = b'\x29'
Expand Down

0 comments on commit a440e54

Please sign in to comment.