mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-23 15:00:43 -04:00
replace string literals with form id
This commit is contained in:
parent
8b235f0182
commit
6a17b27fb9
1 changed files with 2 additions and 2 deletions
|
@ -443,7 +443,7 @@ const TestConfig = {
|
||||||
paymentMethods: Object.keys(PaymentAccountForm.FormId), // all supported payment methods
|
paymentMethods: Object.keys(PaymentAccountForm.FormId), // all supported payment methods
|
||||||
assetCodes: ["USD", "GBP", "EUR", "ETH", "BTC", "BCH", "LTC", "USDT-ERC20", "USDT-TRC20", "USDC-ERC20"], // crypto asset codes
|
assetCodes: ["USD", "GBP", "EUR", "ETH", "BTC", "BCH", "LTC", "USDT-ERC20", "USDT-TRC20", "USDC-ERC20"], // crypto asset codes
|
||||||
fixedPriceAssetCodes: ["XAG", "XAU", "XGB"],
|
fixedPriceAssetCodes: ["XAG", "XAU", "XGB"],
|
||||||
fixedPricePaymentMethods: ["CASH_AT_ATM"],
|
fixedPricePaymentMethods: [HavenoUtils.getPaymentMethodId(PaymentAccountForm.FormId.CASH_AT_ATM)],
|
||||||
cryptoAddresses: [{
|
cryptoAddresses: [{
|
||||||
currencyCode: "ETH",
|
currencyCode: "ETH",
|
||||||
address: "0xdBdAb835Acd6fC84cF5F9aDD3c0B5a1E25fbd99f"
|
address: "0xdBdAb835Acd6fC84cF5F9aDD3c0B5a1E25fbd99f"
|
||||||
|
@ -1736,7 +1736,7 @@ test("Cannot post offer exceeding trade limit (Test, CI, sanity check)", async (
|
||||||
test("Can complete a trade within a range and without a buyer deposit (Test, CI)", async () => {
|
test("Can complete a trade within a range and without a buyer deposit (Test, CI)", async () => {
|
||||||
|
|
||||||
// create payment accounts
|
// create payment accounts
|
||||||
let paymentMethodId = "cash_at_atm";
|
let paymentMethodId = HavenoUtils.getPaymentMethodId(PaymentAccountForm.FormId.CASH_AT_ATM);
|
||||||
let assetCode = "aud";
|
let assetCode = "aud";
|
||||||
let makerPaymentAccount = await createPaymentAccount(user1, assetCode, paymentMethodId); // TODO: support getPaymentAccount() which gets or creates
|
let makerPaymentAccount = await createPaymentAccount(user1, assetCode, paymentMethodId); // TODO: support getPaymentAccount() which gets or creates
|
||||||
let takerPaymentAccount = await createPaymentAccount(user2, assetCode, paymentMethodId);
|
let takerPaymentAccount = await createPaymentAccount(user2, assetCode, paymentMethodId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue