Skip to content

Commit

Permalink
EpicChain Core - EpicChain Lab's
Browse files Browse the repository at this point in the history
  • Loading branch information
xmoohad committed Sep 11, 2024
1 parent 7f88c08 commit db13978
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/ContractState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ContractState : IInteroperableVerifiable
public UInt160 Hash;

/// <summary>
/// The nef of the contract.
/// The xef of the contract.
/// </summary>
public NefFile Nef;

Expand Down
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/Native/ContractManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal override async ContractTask OnPersistAsync(ApplicationEngine engine)
var oldContract = state.GetInteroperable<ContractState>(false);
// Increase the update counter
oldContract.UpdateCounter++;
// Modify nef and manifest
// Modify xef and manifest
oldContract.Nef = contractState.Nef;
oldContract.Manifest = contractState.Manifest;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Neo/SmartContract/Native/NativeContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ u.ActiveIn is null && u.DeprecatedIn is null ||
/// <returns>The <see cref="ContractState"/>.</returns>
public ContractState GetContractState(IsHardforkEnabledDelegate hfChecker, uint blockHeight)
{
// Get allowed methods and nef script
// Get allowed methods and xef script
var allowedMethods = GetAllowedMethods(hfChecker, blockHeight);

// Compose nef file
// Compose xef file
var nef = new NefFile()
{
Compiler = "epicchain-core-v3.0",
Expand Down
12 changes: 6 additions & 6 deletions src/Neo/SmartContract/NefFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class NefFile : ISerializable
public ReadOnlyMemory<byte> Script { get; set; }

/// <summary>
/// The checksum of the nef file.
/// The checksum of the xef file.
/// </summary>
public uint CheckSum { get; set; }

Expand Down Expand Up @@ -149,19 +149,19 @@ public void Deserialize(ref MemoryReader reader, bool verify = true)
}

/// <summary>
/// Computes the checksum for the specified nef file.
/// Computes the checksum for the specified xef file.
/// </summary>
/// <param name="file">The specified nef file.</param>
/// <returns>The checksum of the nef file.</returns>
/// <param name="file">The specified xef file.</param>
/// <returns>The checksum of the xef file.</returns>
public static uint ComputeChecksum(NefFile file)
{
return BinaryPrimitives.ReadUInt32LittleEndian(Crypto.Hash256(file.ToArray().AsSpan(..^sizeof(uint))));
}

/// <summary>
/// Converts the nef file to a JSON object.
/// Converts the xef file to a JSON object.
/// </summary>
/// <returns>The nef file represented by a JSON object.</returns>
/// <returns>The xef file represented by a JSON object.</returns>
public JObject ToJson()
{
return new JObject
Expand Down

0 comments on commit db13978

Please sign in to comment.