diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 190ef0147..02bf0af30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,10 @@ jobs: dotnet build tests/DotNetLightning.Core.Tests -p:Portability=True --framework=${{ matrix.framework }} dotnet run --no-build --project tests/DotNetLightning.Core.Tests --framework=${{ matrix.framework }} + - name: Build/pack in release mode + run: | + dotnet pack -p:Configuration=Release src/DotNetLightning.Core -p:Portability=True + - name: Clean to prepare for NSec build run: | dotnet clean diff --git a/src/DotNetLightning.Core/Utils/Primitives.fs b/src/DotNetLightning.Core/Utils/Primitives.fs index 0976aacb1..7daf432b1 100644 --- a/src/DotNetLightning.Core/Utils/Primitives.fs +++ b/src/DotNetLightning.Core/Utils/Primitives.fs @@ -619,18 +619,13 @@ module Primitives = (scriptPubKey: Script) : Result = let isValidFinalScriptPubKey = - (PayToPubkeyHashTemplate.Instance.CheckScriptPubKey( - scriptPubKey - )) - || (PayToScriptHashTemplate.Instance.CheckScriptPubKey( - scriptPubKey - )) - || (PayToWitPubKeyHashTemplate.Instance.CheckScriptPubKey( - scriptPubKey - )) - || (PayToWitScriptHashTemplate.Instance.CheckScriptPubKey( - scriptPubKey - )) + (PayToPubkeyHashTemplate.Instance.CheckScriptPubKey scriptPubKey) + || (PayToScriptHashTemplate.Instance.CheckScriptPubKey + scriptPubKey) + || (PayToWitPubKeyHashTemplate.Instance.CheckScriptPubKey + scriptPubKey) + || (PayToWitScriptHashTemplate.Instance.CheckScriptPubKey + scriptPubKey) if isValidFinalScriptPubKey then Ok