fix: update EscrowService test to use correct createEscrow signature
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Has been skipped
Contract Performance Benchmarks / benchmark-execution-time (push) Has been skipped
Contract Performance Benchmarks / benchmark-throughput (push) Has been skipped
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Failing after 1m4s
Contract Performance Benchmarks / compare-benchmarks (push) Has been skipped
Deploy to Testnet / notify-deployment (push) Successful in 1s

- Add missing _releaseTime parameter (3600 for 1 hour)
- Add missing _conditionDescription parameter ("Test escrow")
- Update all createEscrow calls in test file
- This fixes "no matching fragment" errors
This commit is contained in:
aitbc
2026-04-29 13:11:54 +02:00
parent 4ac9c759af
commit 8085558b12

View File

@@ -90,7 +90,8 @@ describe("EscrowService", function () {
ESCROW_AMOUNT,
0, // Standard escrow type
0, // Manual release condition
ethers.ZeroHash
3600, // 1 hour release time
"Test escrow"
);
const receipt = await tx.wait();
@@ -106,7 +107,8 @@ describe("EscrowService", function () {
ESCROW_AMOUNT,
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
)
).to.emit(escrowService, "EscrowCreated");
});
@@ -119,7 +121,8 @@ describe("EscrowService", function () {
ethers.parseEther("0.0001"), // Below minimum
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
)
).to.be.reverted;
});
@@ -132,7 +135,8 @@ describe("EscrowService", function () {
ethers.parseEther("20000"), // Above maximum
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
)
).to.be.reverted;
});
@@ -148,7 +152,8 @@ describe("EscrowService", function () {
ESCROW_AMOUNT,
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
);
const receipt = await tx.wait();
escrowId = receipt.logs[0].args[0];
@@ -183,7 +188,8 @@ describe("EscrowService", function () {
ESCROW_AMOUNT,
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
);
const receipt = await tx.wait();
escrowId = receipt.logs[0].args[0];
@@ -235,7 +241,8 @@ describe("EscrowService", function () {
ESCROW_AMOUNT,
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
);
const receipt = await tx.wait();
escrowId = receipt.logs[0].args[0];
@@ -301,7 +308,8 @@ describe("EscrowService", function () {
ESCROW_AMOUNT,
0,
0,
ethers.ZeroHash
3600,
"Test escrow"
);
const receipt = await tx.wait();
escrowId = receipt.logs[0].args[0];