Skip to content

Commit 729f76a

Browse files
committed
code cleanup
1 parent 64dc55e commit 729f76a

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

csharp/IotaWalletNet/IotaWalletNet.Application/Account.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public Account(IMediator mediator, string username, IWallet wallet)
5353
public string Username { get; }
5454
public IWallet Wallet { get; }
5555

56-
56+
5757
public async Task<SendMicroAmountResponse> SendMicroAmountAsync(List<AddressWithMicroAmount> addressWithMicroAmounts, TaggedDataPayload? taggedDataPayload = null)
5858
{
5959
return await _mediator.Send(new SendMicroAmountCommand(addressWithMicroAmounts, taggedDataPayload, Username, this));

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/SendMicroAmount/SendMicroAmountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public SendMicroAmountCommand(List<AddressWithMicroAmount> addressesWithMicroAmo
1212
AddressesWithMicroAmount = addressesWithMicroAmount;
1313
Username = username;
1414
Account = account;
15-
TaggedDataPayload= taggedDataPayload;
15+
TaggedDataPayload = taggedDataPayload;
1616
}
1717

1818
public List<AddressWithMicroAmount> AddressesWithMicroAmount { get; set; }

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/SendMicroAmount/SendMicroAmountCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class SendMicroAmountCommandHandler : IRequestHandler<SendMicroAmountComm
99
{
1010
public async Task<SendMicroAmountResponse> Handle(SendMicroAmountCommand request, CancellationToken cancellationToken)
1111
{
12-
SendMicroAmountCommandMessageData messageData = new SendMicroAmountCommandMessageData(request.AddressesWithMicroAmount, new TransactionOptions() { TaggedDataPayload = request.TaggedDataPayload } );
12+
SendMicroAmountCommandMessageData messageData = new SendMicroAmountCommandMessageData(request.AddressesWithMicroAmount, new TransactionOptions() { TaggedDataPayload = request.TaggedDataPayload });
1313
SendMicroAmountCommandMessage message = new SendMicroAmountCommandMessage(request.Username, messageData);
1414
string messageJson = JsonConvert.SerializeObject(message);
1515

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/SendMicroAmount/SendMicroAmountCommandMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace IotaWalletNet.Application.AccountContext.Commands.SendMicroAmount
55
public class SendMicroAmountCommandMessage : AccountMessage<SendMicroAmountCommandMessageData>
66
{
77
private const string METHOD_NAME = "sendMicroTransaction";
8-
public SendMicroAmountCommandMessage(string username, SendMicroAmountCommandMessageData? methodData)
8+
public SendMicroAmountCommandMessage(string username, SendMicroAmountCommandMessageData? methodData)
99
: base(username, METHOD_NAME, methodData)
1010
{
1111
}

csharp/IotaWalletNet/IotaWalletNet.Domain/Common/Models/Address/AddressWithMicroAmount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
public class AddressWithMicroAmount
44
{
5-
public AddressWithMicroAmount(string address, string amount, ulong expiration, string? returnAddress=null)
5+
public AddressWithMicroAmount(string address, string amount, ulong expiration, string? returnAddress = null)
66
{
77
Address = address;
88
Amount = amount;

csharp/IotaWalletNet/IotaWalletNet.Main/Examples/Outputs and Transactions/Send a Micro Transaction/SendMicroTransactionExample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public static async Task Run()
6868
string receiverAddress = "rms1qp8rknypruss89dkqnnuedm87y7xmnmdj2tk3rrpcy3sw3ev52q0vzl42tr";
6969

7070
SendMicroAmountResponse sendMicroAmountResponse = await account.SendMicroAmountUsingBuilder()
71-
.AddAddressAndAmount(receiverAddress, 1, expirationInSeconds:120)
72-
.AddAddressAndAmount(receiverAddress, 2, expirationInSeconds:60)
71+
.AddAddressAndAmount(receiverAddress, 1, expirationInSeconds: 120)
72+
.AddAddressAndAmount(receiverAddress, 2, expirationInSeconds: 60)
7373
.SendMicroAmountAsync();
7474

7575

csharp/IotaWalletNet/IotaWalletNet.Main/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private static async Task Main(string[] args)
1515
//await SendTransactionExample.Run();
1616

1717
await SendMicroTransactionExample.Run();
18-
18+
1919
//await GenerateAnAddressExample.Run();
2020
//await MintNftExample.Run();
2121

0 commit comments

Comments
 (0)