Skip to content

Commit

Permalink
Fix typos (#5529)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 committed Dec 2, 2023
1 parent 44b7ed0 commit 60ff7e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BTCPayServer.Tests/GreenfieldAPITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4473,7 +4473,7 @@ public async Task CustodianTests()
await AssertHttpError(404, async () => await withdrawalClient.SimulateCustodianAccountWithdrawal(storeId, "WRONG-ACCOUNT-ID", simulateWithdrawalRequest));

// Test: SimulateWithdrawal, wrong store ID
// TODO it is wierd that 403 is considered normal, but it is like this for all calls where the store is wrong... I'd have preferred a 404 error, because the store cannot be found.
// TODO it is weird that 403 is considered normal, but it is like this for all calls where the store is wrong... I'd have preferred a 404 error, because the store cannot be found.
await AssertHttpError(403, async () => await withdrawalClient.SimulateCustodianAccountWithdrawal("WRONG-STORE-ID", accountId, simulateWithdrawalRequest));

// Test: SimulateWithdrawal, correct payment method, wrong amount
Expand Down Expand Up @@ -4504,7 +4504,7 @@ public async Task CustodianTests()
await AssertHttpError(404, async () => await withdrawalClient.CreateCustodianAccountWithdrawal(storeId, "WRONG-ACCOUNT-ID", createWithdrawalRequest));

// Test: CreateWithdrawal, wrong store ID
// TODO it is wierd that 403 is considered normal, but it is like this for all calls where the store is wrong... I'd have preferred a 404 error, because the store cannot be found.
// TODO it is weird that 403 is considered normal, but it is like this for all calls where the store is wrong... I'd have preferred a 404 error, because the store cannot be found.
await AssertHttpError(403, async () => await withdrawalClient.CreateCustodianAccountWithdrawal("WRONG-STORE-ID", accountId, createWithdrawalRequest));

// Test: CreateWithdrawal, correct payment method, wrong amount
Expand Down
4 changes: 2 additions & 2 deletions BTCPayServer.Tests/docker-bitcoin-multisig-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare -A xpubs

printf "\n👛 Create descriptor wallets\n\n"
for ((n=1;n<=3;n++)); do
# Create descriptor wallets, surpress error output in case wallet already exists
# Create descriptor wallets, suppress error output in case wallet already exists
./docker-bitcoin-cli.sh -named createwallet wallet_name="${prefix}_part_${n}" descriptors=true > /dev/null 2>&1

# Collect xpubs
Expand All @@ -38,7 +38,7 @@ multisig_int_desc="{\"desc\": $internal_desc_sum, \"active\": true, \"internal\"

multisig_desc="[$multisig_ext_desc, $multisig_int_desc]"

# Create multisig wallet, surpress error output in case wallet already exists
# Create multisig wallet, suppress error output in case wallet already exists

printf "\n🔐 Create multisig wallet\n"
printf "\nExternal descriptor: $external_desc\n"
Expand Down
2 changes: 1 addition & 1 deletion BTCPayServer/Components/Pager/Default.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

if (Model.PaginationQuery != null)
{
// merge both, prefering the `query` properties in case of duplicate keys
// merge both, preferring the `query` properties in case of duplicate keys
query = query.Concat(Model.PaginationQuery)
.GroupBy(e => e.Key)
.ToDictionary(g => g.Key, g => g.First().Value);
Expand Down

0 comments on commit 60ff7e8

Please sign in to comment.