Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace Neo.SmartContract.Framework.Interfaces;

/// <summary>
/// Interface of method that indicate a contract receive NEP-11 Payment
/// Interface of method that indicate a contract receives NEP-11 Payment
/// </summary>
public interface INep11Payment
public interface INep11Payable
{
/// <summary>
/// NonFungibleToken contracts should implement the <see cref="OnNEP11Payment"/> method
/// to receive assets and modify the Manifest file to trust the received asset contract.
/// Contracts should implement the <see cref="OnNEP11Payment"/> method
/// to receive NFT (NEP11) tokens.
/// </summary>
/// <param name="from">The address of the payer</param>
/// <param name="amount">The amount of token to be transferred</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace Neo.SmartContract.Framework.Interfaces;

/// <summary>
/// Interface of method that indicate a contract receive NEP-17 Payment
/// Interface of method that indicate a contract receives NEP-17 Payment
/// </summary>
public interface INep17Payment
public interface INep17Payable
{
/// <summary>
/// The Token contract should implement the <see cref="OnNEP17Payment"/> method
/// to receive assets and modify the Manifest file to trust the received asset contract.
/// The contract should implement the <see cref="OnNEP17Payment"/> method
/// to receive NEP17 tokens.
/// </summary>
/// <param name="from">The address of the payer</param>
/// <param name="amount">The amount of token to be transferred</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Neo.SmartContract.Framework.UnitTests.TestClasses
{
[SupportedStandards(NEPStandard.NEP11)]
public class Contract_SupportedStandard11Enum : Nep11Token<Nep11TokenState>, INep11Payment
public class Contract_SupportedStandard11Enum : Nep11Token<Nep11TokenState>, INep11Payable
{
public static bool TestStandard()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Neo.SmartContract.Framework.UnitTests.TestClasses
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template")]
[ContractPermission("*", "*")]
[SupportedStandards(NEPStandard.NEP17)]
public class Contract_SupportedStandard17Enum : Nep17Token, INep17Payment
public class Contract_SupportedStandard17Enum : Nep17Token, INep17Payable
{
public override string Symbol { [Safe] get; }
public override byte Decimals { [Safe] get; }
Expand Down