Skip to content

Commit e7506c9

Browse files
authored
rename (#965)
Co-authored-by: Shargon <[email protected]>
1 parent 1b09e9c commit e7506c9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/Neo.SmartContract.Framework/Interfaces/INEP11Payment.cs renamed to src/Neo.SmartContract.Framework/Interfaces/INEP11Payable.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
namespace Neo.SmartContract.Framework.Interfaces;
44

55
/// <summary>
6-
/// Interface of method that indicate a contract receive NEP-11 Payment
6+
/// Interface of method that indicate a contract receives NEP-11 Payment
77
/// </summary>
8-
public interface INep11Payment
8+
public interface INep11Payable
99
{
1010
/// <summary>
11-
/// NonFungibleToken contracts should implement the <see cref="OnNEP11Payment"/> method
12-
/// to receive assets and modify the Manifest file to trust the received asset contract.
11+
/// Contracts should implement the <see cref="OnNEP11Payment"/> method
12+
/// to receive NFT (NEP11) tokens.
1313
/// </summary>
1414
/// <param name="from">The address of the payer</param>
1515
/// <param name="amount">The amount of token to be transferred</param>

src/Neo.SmartContract.Framework/Interfaces/INEP17Payment.cs renamed to src/Neo.SmartContract.Framework/Interfaces/INEP17Payable.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
namespace Neo.SmartContract.Framework.Interfaces;
44

55
/// <summary>
6-
/// Interface of method that indicate a contract receive NEP-17 Payment
6+
/// Interface of method that indicate a contract receives NEP-17 Payment
77
/// </summary>
8-
public interface INep17Payment
8+
public interface INep17Payable
99
{
1010
/// <summary>
11-
/// The Token contract should implement the <see cref="OnNEP17Payment"/> method
12-
/// to receive assets and modify the Manifest file to trust the received asset contract.
11+
/// The contract should implement the <see cref="OnNEP17Payment"/> method
12+
/// to receive NEP17 tokens.
1313
/// </summary>
1414
/// <param name="from">The address of the payer</param>
1515
/// <param name="amount">The amount of token to be transferred</param>

tests/Neo.SmartContract.Framework.TestContracts/Contract_SupportedStandard11Enum.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Neo.SmartContract.Framework.UnitTests.TestClasses
66
{
77
[SupportedStandards(NEPStandard.NEP11)]
8-
public class Contract_SupportedStandard11Enum : Nep11Token<Nep11TokenState>, INep11Payment
8+
public class Contract_SupportedStandard11Enum : Nep11Token<Nep11TokenState>, INep11Payable
99
{
1010
public static bool TestStandard()
1111
{

tests/Neo.SmartContract.Framework.TestContracts/Contract_SupportedStandard17Enum.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Neo.SmartContract.Framework.UnitTests.TestClasses
1313
[ContractSourceCode("https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template")]
1414
[ContractPermission("*", "*")]
1515
[SupportedStandards(NEPStandard.NEP17)]
16-
public class Contract_SupportedStandard17Enum : Nep17Token, INep17Payment
16+
public class Contract_SupportedStandard17Enum : Nep17Token, INep17Payable
1717
{
1818
public override string Symbol { [Safe] get; }
1919
public override byte Decimals { [Safe] get; }

0 commit comments

Comments
 (0)