fix: use release time 0 to pass validation in EscrowService test
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 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Failing after 1m1s
Contract Performance Benchmarks / compare-benchmarks (push) Has been skipped
Deploy to Testnet / notify-deployment (push) Successful in 2s
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 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Failing after 1m1s
Contract Performance Benchmarks / compare-benchmarks (push) Has been skipped
Deploy to Testnet / notify-deployment (push) Successful in 2s
- Contract requires _releaseTime == 0 or _releaseTime > block.timestamp - Using 3600 was less than block.timestamp, causing validation failure - Changed all createEscrow calls to use release time 0 (immediate release)
This commit is contained in:
@@ -90,7 +90,7 @@ describe("EscrowService", function () {
|
|||||||
ESCROW_AMOUNT,
|
ESCROW_AMOUNT,
|
||||||
0, // Standard escrow type
|
0, // Standard escrow type
|
||||||
0, // Manual release condition
|
0, // Manual release condition
|
||||||
3600, // 1 hour release time
|
0, // Immediate release
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
);
|
);
|
||||||
const receipt = await tx.wait();
|
const receipt = await tx.wait();
|
||||||
@@ -107,7 +107,7 @@ describe("EscrowService", function () {
|
|||||||
ESCROW_AMOUNT,
|
ESCROW_AMOUNT,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
)
|
)
|
||||||
).to.emit(escrowService, "EscrowCreated");
|
).to.emit(escrowService, "EscrowCreated");
|
||||||
@@ -121,7 +121,7 @@ describe("EscrowService", function () {
|
|||||||
ethers.parseEther("0.0001"), // Below minimum
|
ethers.parseEther("0.0001"), // Below minimum
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
)
|
)
|
||||||
).to.be.reverted;
|
).to.be.reverted;
|
||||||
@@ -135,7 +135,7 @@ describe("EscrowService", function () {
|
|||||||
ethers.parseEther("20000"), // Above maximum
|
ethers.parseEther("20000"), // Above maximum
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
)
|
)
|
||||||
).to.be.reverted;
|
).to.be.reverted;
|
||||||
@@ -152,7 +152,7 @@ describe("EscrowService", function () {
|
|||||||
ESCROW_AMOUNT,
|
ESCROW_AMOUNT,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
);
|
);
|
||||||
const receipt = await tx.wait();
|
const receipt = await tx.wait();
|
||||||
@@ -188,7 +188,7 @@ describe("EscrowService", function () {
|
|||||||
ESCROW_AMOUNT,
|
ESCROW_AMOUNT,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
);
|
);
|
||||||
const receipt = await tx.wait();
|
const receipt = await tx.wait();
|
||||||
@@ -241,7 +241,7 @@ describe("EscrowService", function () {
|
|||||||
ESCROW_AMOUNT,
|
ESCROW_AMOUNT,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
);
|
);
|
||||||
const receipt = await tx.wait();
|
const receipt = await tx.wait();
|
||||||
@@ -308,7 +308,7 @@ describe("EscrowService", function () {
|
|||||||
ESCROW_AMOUNT,
|
ESCROW_AMOUNT,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
3600,
|
0,
|
||||||
"Test escrow"
|
"Test escrow"
|
||||||
);
|
);
|
||||||
const receipt = await tx.wait();
|
const receipt = await tx.wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user