aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-06-17 13:50:43 +0200
committerFlorian Dold <florian@dold.me>2024-06-17 13:50:43 +0200
commitabbab3b029002eb5d603af611db6f411daf5d490 (patch)
treec48a79a4dc28649ac274b3dafdbb849e3bf517b0 /packages/taler-harness/src
parent05535fdc226f39666ed0a692871f54dea904af7b (diff)
downloadwallet-core-abbab3b029002eb5d603af611db6f411daf5d490.tar.xz
wallet-core: coin history
Diffstat (limited to 'packages/taler-harness/src')
-rw-r--r--packages/taler-harness/src/integrationtests/test-revocation.ts4
-rw-r--r--packages/taler-harness/src/integrationtests/test-wallet-refresh-errors.ts4
-rw-r--r--packages/taler-harness/src/integrationtests/test-wallettesting.ts6
3 files changed, 7 insertions, 7 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-revocation.ts b/packages/taler-harness/src/integrationtests/test-revocation.ts
index 65aa86f98..8714a3769 100644
--- a/packages/taler-harness/src/integrationtests/test-revocation.ts
+++ b/packages/taler-harness/src/integrationtests/test-revocation.ts
@@ -51,7 +51,7 @@ async function revokeAllWalletCoins(req: {
console.log(coinDump);
const usedDenomHashes = new Set<string>();
for (const coin of coinDump.coins) {
- usedDenomHashes.add(coin.denom_pub_hash);
+ usedDenomHashes.add(coin.denomPubHash);
}
for (const x of usedDenomHashes.values()) {
await exchange.revokeDenomination(x);
@@ -239,7 +239,7 @@ export async function runRevocationTest(t: GlobalTestState) {
const coinDump = await walletClient.call(WalletApiOperation.DumpCoins, {});
console.log(coinDump);
- const coinPubList = coinDump.coins.map((x) => x.coin_pub);
+ const coinPubList = coinDump.coins.map((x) => x.coinPub);
await walletClient.call(WalletApiOperation.ForceRefresh, {
refreshCoinSpecs: coinPubList.map((x) => ({ coinPub: x })),
});
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-refresh-errors.ts b/packages/taler-harness/src/integrationtests/test-wallet-refresh-errors.ts
index 0f1efd35e..7b101bc18 100644
--- a/packages/taler-harness/src/integrationtests/test-wallet-refresh-errors.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallet-refresh-errors.ts
@@ -80,7 +80,7 @@ export async function runWalletRefreshErrorsTest(t: GlobalTestState) {
await walletClient.call(WalletApiOperation.ForceRefresh, {
refreshCoinSpecs: [
{
- coinPub: coinDump.coins[0].coin_pub,
+ coinPub: coinDump.coins[0].coinPub,
amount: "TESTKUDOS:3" as AmountString,
},
],
@@ -95,7 +95,7 @@ export async function runWalletRefreshErrorsTest(t: GlobalTestState) {
await walletClient.call(WalletApiOperation.ForceRefresh, {
refreshCoinSpecs: [
{
- coinPub: coinDump.coins[0].coin_pub,
+ coinPub: coinDump.coins[0].coinPub,
amount: "TESTKUDOS:3" as AmountString,
},
],
diff --git a/packages/taler-harness/src/integrationtests/test-wallettesting.ts b/packages/taler-harness/src/integrationtests/test-wallettesting.ts
index 001081532..bc5ed1004 100644
--- a/packages/taler-harness/src/integrationtests/test-wallettesting.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallettesting.ts
@@ -191,10 +191,10 @@ export async function runWallettestingTest(t: GlobalTestState) {
{
for (const c of coinDump.coins) {
if (
- c.coin_status === CoinStatus.Fresh &&
- 0 === Amounts.cmp(c.denom_value, "TESTKUDOS:8")
+ c.coinStatus === CoinStatus.Fresh &&
+ 0 === Amounts.cmp(c.denomValue, "TESTKUDOS:8")
) {
- susp = c.coin_pub;
+ susp = c.coinPub;
}
}
}