Skip to content

Commit 23576c2

Browse files
committed
chore: add comment for transfer blacklist removal permission
1 parent 7aeb479 commit 23576c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contract/AElf.Contracts.MultiToken/TokenContract_Actions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ public override Empty BatchAddToTransferBlackList(BatchAddToTransferBlackListInp
882882

883883
public override Empty RemoveFromTransferBlackList(Address input)
884884
{
885+
// Removing from transfer blacklist requires higher security and response speed is not critical,
886+
// so it should be controlled by Parliament.
885887
AssertSenderAddressWith(GetDefaultParliamentController().OwnerAddress);
886888
Assert(input != null && !input.Value.IsNullOrEmpty(), "Invalid address.");
887889
State.TransferBlackList[input] = false;
@@ -890,6 +892,8 @@ public override Empty RemoveFromTransferBlackList(Address input)
890892

891893
public override Empty BatchRemoveFromTransferBlackList(BatchRemoveFromTransferBlackListInput input)
892894
{
895+
// Removing from transfer blacklist requires higher security and response speed is not critical,
896+
// so it should be controlled by Parliament.
893897
AssertSenderAddressWith(GetDefaultParliamentController().OwnerAddress);
894898
Assert(input != null && input.Addresses != null && input.Addresses.Count > 0, "Invalid input.");
895899

0 commit comments

Comments
 (0)