Skip to content

Commit

Permalink
Audit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matsakiv committed Sep 16, 2020
1 parent 18d0552 commit 6c987ac
Show file tree
Hide file tree
Showing 174 changed files with 7,333 additions and 4,760 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: microsoft/dotnet:latest
image: mcr.microsoft.com/dotnet/core/sdk:3.1

stages:
- build
Expand Down
11 changes: 7 additions & 4 deletions Atomex.Client.Core.Tests/Atomex.Client.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>

Expand All @@ -14,10 +14,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="Moq" Version="4.13.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Moq" Version="4.14.5" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />

</ItemGroup>
Expand Down
199 changes: 0 additions & 199 deletions Atomex.Client.Core.Tests/BitcoinBased/BitCoreApiTests.cs

This file was deleted.

8 changes: 5 additions & 3 deletions Atomex.Client.Core.Tests/BitcoinBased/BitcoinBasedCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Atomex.Blockchain.BitcoinBased;
using NBitcoin;

namespace Atomex.Client.Core.Tests
namespace Atomex.Client.Core.Tests.BitcoinBased
{
public static class BitcoinBasedCommon
{
Expand Down Expand Up @@ -41,15 +41,17 @@ public static IBitcoinBasedTransaction CreateFakeTx(BitcoinBasedCurrency currenc
PubKey to,
int amount,
int fee,
DateTimeOffset lockTime)
DateTimeOffset lockTime,
params Script[] knownRedeems)
{
return currency.CreateP2PkhTx(
unspentOutputs: outputs,
destinationAddress: to.GetAddress(ScriptPubKeyType.Legacy, currency.Network).ToString(),
changeAddress: from.GetAddress(ScriptPubKeyType.Legacy, currency.Network).ToString(),
amount: amount,
fee: fee,
lockTime: lockTime);
lockTime: lockTime,
knownRedeems: knownRedeems);
}
}
}
Loading

0 comments on commit 6c987ac

Please sign in to comment.